Implemented a generator based flow-control.
Fixed tests on Travis by requiring co-mocha.