implements sleepWhenIdle in queue
queue->setSleepWhenIdle from options[sleep_when_idle]
adds tests
cs
review feedback