added a conditional to the layout.ejs to load the minified scripts only if it runs in production
Mostly complete mongodb/mongoose refactor