add lots of logging.

Add new settings in config to fit new logging statements.
Add reconnection attempts when connecting to RabbitMQ
Add debug option in config, if set to true a console handler will be attach
to the root logger.
add missing import to rabbitmq consumer