Add idle() function to determine if the queue has any work

Documented idle() and running() functions.
Add tests for queue idle() function