Ascertain lost trials and revamped dispatching

* The executor is queried continuously for known trials and
  lost ones are marked failed in the database.

* The dispatcher tries to dispatch to the next suitable executor
  recursively if dispatching failed.