A minimal implementation of Promises/A+