Fix default promise resolver
Correctly resolve promises on deferred
Apache license.
More doccos.
Tests on deferred resolved with promises