fix celery deadlocks by removing all blocking tasks from other (parent) tasks, and moving the logic to inline model methods

i was able to confirm this works by setting a autoscale pool of 10,1 and watching it scale up/down when handling a large number of tasks.
Merge pull request #359 from opdemand/fix-celery-deadlock

Fix Celery deadlocks by removing all blocking tasks from parent tasks