Make a Q.t containing everything you need to know about a specific queue

This replaces an ad-hoc set of hashtables.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>