Creates a server socket.io for the term.js

This creates a socket.io connection to make use of term.js. It fails if you close the socket and try to reopen, but works on the first try. I also ripped out a socket.io component that may or may not have broken a key piece of functionality I don't know about.