Add promise implementation
Merge pull request #2 from ForbesLindesay/add-promises

Add promise implementation