Turning scopes into lambdas for asset precompile

The asset precompile step on Heroku deploy seems to trigger scoep evaluation,
which then causes the deploy to fail because the DB isn't available at this
point. Turning them into lambdas instead in order to work around this.