Move mongo connection after logging is initialized and print error to console
Remove print statements and add a console handler.
modify tests to reflect that errors are logged, not printed
Misc updates from PR comments
Merge branch 'amacdona-1093763' into 2.5-dev

Conflicts:
	server/pulp/server/db/connection.py