ES: refactor Job generation in search_jobs_not_done().

Create methods to decide what must happen to a Submission or to
a UserTest. The intent is to move all the similar logic in these
methods.
ES: add "submission_" prefix to some methods for consistency.
ES: finish refactoring Job generation.

All Job creation is factored through submission_get_jobs() and
user_test_get_jobs().

Also, fix some logging and reimplement lowered priority for Jobs
that have already failed.
A lot of full stops.
Another docstring.
Use EXTRA_LOW priority for datasets that are not active.
Fix docstrings.