Fix oddly formed conditional in rest interface query parsing
fixed some tautological-compare and unused variable warnings
Merge branch 'bugfixes/tokumx-1.4' into releases/tokumx-1.4