clean up Animation functions

made AnimationSystem class with static methods to create, query and
delete animations instead of them being global functions.
remove stale TODO comments