Angular: typing promises, deferreds

Added generics for promises/deferred.