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

....
Somewhere in here we might want to catch the fact that a Job doesn't even have a `resolveWaitAsync()` function. There should probably be an explicit exception code path for that.