Added JS generation with emscripten.

Some work left to make sure non-ascii text isn't decompressed
to mojibake.
Fixed JS generation. Added demo html.
Renamed things to make them better documentable.
Corrected node.js compatibility
Merge branch 'master' of github.com:Ed-von-Schleck/shoco
merge README from gh-pages