Added task object and REST handlers refactored

Change-Id: I9ffcbca56ca0aeb6d0fda2918a159c32532f0838
Merge "Added task object and REST handlers refactored"