Fixed incorrect call to logging.debug() that transparently adds a handler to the root logger

Calling `logging.debug()` directly causes a `logging.StreamHandler` to be added to the default root logger `logging.getLogger()`.

This has terrible consequences when one wants to keep control over the handlers of the root logger.

The proposed change fixes that issues while keeping the log output if needed.
Merge ereOn's logging change

I disagree about the terribleness, but namespacing is a good idea.

From http://docs.python.org/dev/library/logging.html#logging.basicConfig

> The functions debug(), info(), warning(), error() and critical() will
> call basicConfig() automatically if no handlers are defined for the
> root logger.

> This function does nothing if the root logger already has handlers
> configured for it.