Added Deferred.when method

To unify sync and async methods

Fixed #63