Updated for usage socket.io 1.0.x, with elephant.io 3.x