Revert "SONAR-4069 Remove Task and TaskDefinition from API."

This reverts commit 7509fbafb262c92c3603d5b17387c232a5748327.