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

Closes #7722