Implement sockjs hack for Heroku

See https://github.com/sockjs/sockjs-node/issues/57#issuecomment-5242187