Add some getter and setter to DelegateTask.
Add getDelegationState() in DelegateTask.
Merge pull request #328 from henryyan/task-getter-setter

Add some getter and setter to DelegateTask.