use callbacks when chaining tasks, remove boilerplate
Merge pull request #659 from crate/m/task_chaining

use callbacks when chaining tasks, remove boilerplate