Refactor powerline to create loggers and use run_cmd in powerline-config

This PRs refactors `powerline/__init__.py` to make it possible to create `PowerlineLogger` instances with user settings without creating `Powerline` instances. This ability is currently used only in `powerline-config` script in order to use `powerline.lib.shell.run_cmd`.