AnimationComplete: Add transition, fallbacks and remove memory leaks

Also now its own module including support tests for animations and
transitions

Fixes gh-5156
Fixes gh-6816
Fixes gh-6697
Fixes gh-6895
Fixes gh-6148