Add task.then() which can handle both fulfilled & rejected.
Merge pull request #2 from inamiy/then-fulfilled-rejected

Add task.then() which can handle both fulfilled & rejected.