Added socket.io support. fixes #4