Restored missing bulk subscribe message handler
Removed gruntfile
Stripped out grunt stuff from package.json
Reverted buggy async code in filterDocs, fixed bulksubscribe and handleMessage
Added better error handing for the invalid version bug
Wse websocket compatible messages.
Use Dignifiedquire/transport-adapters
Use browserify && make to build the client.
Make prototype use the browserify structure and convert it to JavaScript.
add on listener to json api.
Include json api in build.
Pass old snapshot to 'after submit' middelware
Remove not needed grunt deps.
Revert "Pass old snapshot to 'after submit' middelware"

This reverts commit 3d71ee8b3e5e4c40ab99b8f0a288e09e758d4a30.