Allow promises to be returned in lifecycle hooks
Merge pull request #177 from clark-pan/master

Allow promises to be returned in lifecycle hooks