Change version to 2.0.0-dev.
Migrate to Promises.
Fix bugs and refactor.