added barebones sockjs functionality
separated sockjs server code into a new file