Can't log to debug log before chain params initialized

Calling LogPrintf() before SelectParamsFromCommandLine() resulted in an assertion, because it is not yet known what debug log to log to.

Second commit replaces some UI LogPrintfs with qDebug().