 TODOs
 
 -> Instead of require()ing JSON, it should be read and JSON.parse()d
--> Models and routes should be allowed to return their stuff asynchronously
--> Find out why 'view engine' isn't getting set ('no default engine and no extension specified' for res.render)
 -> Add ability to 'watch' file changes, e.g. routes, models, app, config, etc
 ###
 

				@use express.static ctx.sources
				@use express.static serve_dir

				compiled_models = ctx.models cfg, winston, node_env
				compiled_routes = ctx.routes @, compiled_models, cfg, winston, node_env

				rtprint @, winston


				@set 'trust proxy', cfg.server.behind_proxy
				@set 'port', port
				@set 'views', ctx.views if ctx.views?
				@set k, v for own k, v of cfg.express when k not in ['env', 'views', 'trust proxy']

				@use express.compress() if cfg.compress
				@use express.favicon() unless cfg.app.favicon?
