Move config and logging into a separate submodule.