Merge pull request #180 from Somesh/master

Datamodel changes for task  and added "raise validation error " in certain other scenarios
removed repeated code
modified task handler for task deletion