Rudimentary animation system

This is actually the same as the animation system from the old
compositor, but with some added bits for damage rects.