Adding mongodb and functionality to serve static files from server.