Support for keyframe and sprite animation

Added support for time-based calculation of the current animation frame
for a sprite. Added support for keyframes and various interpolation
methods.