Refactored QueryQueuingManager to be simpler. Added internal metrics that report the number of queries waiting, query run time, and query collisions.