Separate requesting and handling of animation frames.

Closes #176.