Rewrite queryservice_test so that it doesn't use the old querylog.
Do not write the debug querylog when the streaming query log is available.
Remove unused logging libraries: logfile and relog.