Allow generator functions and promises
Merge pull request #7 from refack/patch-2

Lions and tiger and `Generator Functions` and `Promises`, ohh my...