This is a very native implementation of what CommonJS Promises/A describes.