Added AllocatedEvaluator.submitTask()

Closes #996 and uses the new method in examples and tests.