Sockjs integration

I tried to stick as close to the socket.io implementation as possible. Same with the tests. All the tests I've put in so far are passing. They don't cover all that the socket.io tests cover yet I'm afraid.