Remove db specific code from view
Return correct code in error handlers
Setup config from environment and logging
WIP setup for deploying app