A basic implementation complying with the Promises/A+ spec