Improved the entity animation system so that animations can be added more generally and easily.