Separate log config from package

This makes it customizable for each environment, like the config. Good to
separate dev logging and production logging with email notifications and
stuff.

Also refactor the app configuration.