Fix crash when first keyframe delayed.
Cleanup animation manager a bit.

Remove unused code.
Formatting.
Not even close to finished.
Another unused method.