1093762-Move mongo connection after logging is initialized and print error to co...

To preserve the error log, logging must be initialized before the mongo connection is attempted. Additionally, this error message should be printed to the console rather than simply hanging.

Fixes [BZ-1093762](https://bugzilla.redhat.com/show_bug.cgi?id=1093763)
I know you were following the style of the existing code here, but I've been working on replacing all places where we capitilize the logger in Pulp with a lower case variable, _logger. In Python, it's conventional to use all caps to indicate a constant, like IMPRECISE_PI = 3.14. However, the logger isn't a constant at all, it's an object. Sadly, this is spread all over the place. Would you mind s/_LOG/logger/ throughout this file, and also s/_CONSOLE_HANDER/_console_handler/?