conform to tentative Promises/A+ tests, version 1.1; implement promise.resolve so that a promise may adopt the state of a promise and a standards-compliant test; also assimilates most reasonably-behaving thennables