Add mcbench.query module for query logic.

Move QueryResult there, together with the multiprocessing stuff.
Let go of only using qualified names.