Added ability to query the status of the queue

Implements #8