Changed rendering methods

Changed from res.render(page, stuff) to res.render(page) and added stuff
directly to res.locals.