refactor(Task): Add class constants for task's statuses (refs #4688)

Also, add some missing return statements.
Merge pull request #13 from eguaj/1.4-A4688

refactor(Task): Add class constants for task's statuses (closes #4688)