fix PostMessageStream random secret generation (page crash in example/conf)
Merge pull request #9 from abalandin/master

fix PostMessageStream random secret generation
backported fix: int2base infinite loop
refac: nice clean CommonJS for in-browser stuff :)

Ported the mice example to CommonJS, added Makefiles to build
example(s), made client-side bundle, see dist/html5-client.js.