[JobQueue] Added JobQueue::getAllQueuedJobs() function.

* Also added a small MappedIterator class for convenience.

Change-Id: I7dac1001a8e048cb524f7fbfee50a20a32e598ba