Promises/A+ conformant implementation