implement dnf.logging module

this provides a more reasonable version of dnf.yum.logginglevels, though
leaves things to be desired. For instance, the logging can be configured
so WARNING messages are not shown yet DEBUG messages are. This is allowed
for CLI compatibility ('-e' and '-d' options).
tests: unified stdout/stderr patching.