Pull some less middleware config out into the environmental config files
Simplifying errorHandler usage because it no longer takes config
Control nunjucks dev/prod mode through config instead of environment
Merge pull request #802 from stenington/enhance-config

Move NODE_ENV-based config to config files