add environment var to app.locals so it is accessible in views
Preliminary angular.js and ui-router stuff for single-page app!