Removed usage of generators.

Now only use bluebird's promises. It makes the library usable with older
version of node.