Set deferred.promise and deferred.resolver explicitly, as When.js is going to deprecate deferred.then
Network: Code cleanup.