Add run_jobs tests, fix timeout query

Added tests for teams and domains for the following scenarios:
* multiple ops run in sequence
* failed ops gets put back in init state and retried on next run
* ops do not get run from multiple threads
* a running op blocks later ops
* a timed out op gets retried
* a completed op gets removed and execution proceeds

The timeout test exposed a problem with the $lt query... apparently, the mongoid symbol decoration doesn't work for subdocument conditions