feat($animate): allow directives to cancel animation events

what's the purpose of this?