First draft of (incomplete) implementation of Socket.io 1.x