Use the exit module instead of our own implementation.
Use primus and SockJS instead of socket.io.

Socket.io does not seem to be maintained actively any more.
Primus allows to easily change the transport provider when needed.
Fix node.js 0.10 compatibility issues.