Added and changed a bunch of files to make socket.io work