moved server functionality into server.js
    * seemed weird that var app = createServer lived in app.js, so I
    moved it to server.js, and now the socket functionality lives in
    app.js