CSSAnimation.js: run completion functions only when all animations (for a given element) did end and run them is the order they where added.
This will guaranty that the main view frame is set before subviews frame. Fixes a bug where subviews with custom drawing and autoresizing masks could jump to a wrong position when the animation ends.