Moved predeployment build stuff into build.js and out of the app

instead of passing in environment vars to the main app in order to smoosh things, we can now just run `node build.js`. This gives app.js a little less responsibility and makes it clearer that it just configures express.