Don't test minified js.
Remove P.promise
Remove P.resolve and P.reject
Reintroduce deferred.resolve
Replace resolve with P, and implement P.allResolved.
Introduce promise.state and promise.value.
Don't resolve if not pending.
Minify.