Clean up main file
Clean up main file

* convert.js includes the vdom library, which we aren't using anymore
  - removed, and replaced with the simple functions from Hyperjson and Hyperscript
* removed several variables that had been exported to 'window'
* moved the testing functions out into their own file for easier reuse
* restructured realtime initialization to be more compact

xwiki-labs/cryptpad,xwiki-labs/cryptpad,xwiki-labs/cryptpad