Prevent import exceptions in Sphinx autodocs

add Mock()ed PyLucene and provide its VERSION
don't try to access fixtag method of ElementTree if it is Mock()ed
don't raise ImportError for cPO/fPO if no gettext PO library found
Replace all print >> sys.stderr with logging calls

no cleanup or tweaking of output (yet)
Avoid embedding newlines in logger string for statsdb
Wrap long lines in all logger calls to <= 80
Tweak logger format for commandline