Updated app based on express-generate
Move websocket stuff to separate file