Fixed issue with logging and added capability to execute in background.

- fixed issue with logging
- logging is now done in a proper way :)
- capability to execute in background

Please note that new configuration settings has been added and that logging is now done using:

logging.getLogger().<level>('Message %s %s ...', arg1, arg2, ...)