The idea is to split the current client into a native application, a browser plugin and a JS library.