Basic real-time functionality implemented with socket.io

Added mongodb and passport middleware