remove long polling code and update to new socket.io interface.