Handle Task-returning methods

Fixes #25
Merge pull request #26 from dahlbyk/gh25

Handle Task-returning methods