Pause *before* firing "AnimationEnd"

Currently, if you try to play a new animation by binding to "AnimationEnd", it'll be paused right after the event fires.  This just switches the order, and adds a test for animation chaining.
Merge pull request #731 from starwed/anim-pause-order

Pause *before* firing "AnimationEnd"