Start migration to sockjs

Replaced socket.io for sockjs and created a small layer of abstraction over it. There could be more work done to the abstraction, but for now this should be a decent start.