feat(engine/rest): Add job query for no retries left
- add query to rest api
- adjust existing testcases for this query

related to CAM-358
Merge pull request #29 from polenz/CAM-358-noRetriesLeft

Add job query for no retries left