queryservice: queryz fixes

Fix queryz (and querylogz) so long queries can wrap.
Also fix a coloring bug.