cleaned up type declarations
changed view engine to Hogan.js
replaced RethinkDB with MongoDB and added socket.io for connection events