Make browserifiable

Kudos for switching to browserify for the 1.x release! I have been using it myself for the past couple weeks, and having a great time compared to RequireJS or alternatives.

However, sockjs-client is not, itself, usable as a dependency in a browserified project. Browserify can't figure out the entrypoint of the repo (because package.json#main is missing).

Also, the ./lib/utils module expects `SockJS` to be defined, but does not explicitly require it. I believe this used to work in 0.3.4 because usually global.SockJS would be defined and/or the old build process would concat without closures around each module. tricky.

This pull request fixes these two issues. I've verified that after this patch, I can browserify require('sockjs-client') in another project and start connecting to a backend.

Great project!