Factored out stout headers. Refactored the logging interface.