Removed an unused error function
added state conflict? check for task update
Pulled put-task out of the resource definition
Rewritten just-finished? calc in update-task