Inlined the socket.io library so that we do not need to load it from the running instance