An implementation of Promises/A+