Move mime stuff into own submodule.
Remove unused variables.
Improved wording
[ci skip]
Refactor logging configuration.