Refactor code to resolve jobs in WAIT_ASYNC into JQManagedJob. Add tests...

....
Can we return the disposition so that the caller can check the outcome? Another trivial implementation thing that I'm uncertain about the design on.