Bug 1042213 - Update Task API to include attempts by users for a particu...

Updated the task API to include TaskAttempt values.
This supports GET and POST requests.

Also modified the unit tests for the changes made to API.