Remove direct socket.io dependency, and fix socket.io host