Implementation of Deferred.when. Some changes and deprecations in Function (need discussion). All Ajax methods now returns a Deferred