NPM package and updated promises

Changed to a newer version of PromiseJS and submitted to npm.