Refactor log printing

Add Typesafe
replace printf with LogPrint(f)
remove .c_str() from prints
remove prints()
replace PRI64(d,u,x) with %d, %u, %x
remove ToStringShorts
replace multiple debug switches with -debug=  or just -debug for all
use qDebug() for QT