Factor out logging config, call from wsgi script.

Previously we were only configuring the logger from the cli tool.
This is a nit, but in order to make it more clear (cli.py has a lot of stuff) could you make this::

config.configure_logging()