Added app name to express locals instead of passing it to render.
Changed DB functionality to use single instance of mongoose. Keeping track of open connections when using multiple instances proved too difficult in tests.