Refactor anima functions into modules

The one gigantic file approach was bound to fail, and I'm glad I sat down
tonight to refactor this. We already had functions with low cyclomatic
complexity (modulo iterating over arrays), but I think having the
code silo'd off into separate files "feels better", in some intangible way.