Add support for promises
Replicate demo/run.js examples with promises
Merge pull request #19 from nickb1080/support-promises

Add support for promises