Fix Bug 881365 - Use app.locals for all the common data being passed to templates