Moved animation stuff away from aftool and bktool