Moving mongodb persistence of tasks into instance document, eliminating need for TaskRepository and allowing searches to be performed exclusively against mongo
Fix to change task status and active flag