Add Tasks API endpoint to return state of the task.
Merge pull request #175 from GVRV/enhancement/task_state

Enhancement: Add Tasks API endpoint to return state of the task.