Adding private queue module.

This makes it easier to add things to the private queues that come
from the queue of queues. It also has some convenience functions
that allow values to be passed back and forth synchronously.
Adding test for wait queries through the private queue.