Working queue

As per usual, comments are welcome :)

Fixes #380


Actually, I thought of that one too, but removed it since I did not want to introduce another term for the "running" state. I don't believe we use the term "active job" anywhere, just "running" or "current" jobs. That said, I think the name is pretty clear and I'm okay with it.