Support browserify

Add a prepublish script to generate a standalone version of hashspace that can be ealisy dropped in the browser.
This avoid the need of other script loaders.
Keeps the compiler separate for the runtime.