[WIP] Fixing animation problems

Lots of little stuff: animations running too fast, or looping when they
shouldn't.