Route qDebug() messages to debug.log

remove printf redefinition from bitcoinrpc.cpp
code cleanup