created promise.js for easy lib switching.

I was messing around with other promise libraries, so I did this.
Seems worth keeping.