Browserify v2 support
Support user-defined require, further browserify v2 stuff
Fixes in clientside, browserify amends
Merge pull request #410 from anatoliychakkaev/master

Browserify support, fixes on clientside