setup for creating game rooms (unfinished)
refactor lobby.ejs for clarity (structure on top, templates on bottom)
moved api.js to app/api.js, moved mongodb connection to app.js and pass it into api.js as a module paramater.
this way, we can use the database outside the api (i.e. in sockets) without connecting to it twice.
also cleaned up app.js, removing some redundant require calls and accidental global variables (careful with semicolons, guys)
create app/sockets.js and move socket server behavior into there (incl. chat)