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

Documented idle() and running() functions.