Promisify CommonJS module
Add test case for the promise API
examples: using promise
Merge pull request #319 from macbre/module-promise

Promisify CommonJS module