Add support for Promise API
Merge pull request #6 from double16/promise-api

Add support for Promise API