added logging and querystring parsing, and introduced socket.io
tried to get some chat functionality. Was mildly successful.