basic infrastructure for play clock

This adds a PlayClock class, and the relevant plumbing for autosyncing it
and accessing it from the template.
controls for play clock display

This also required some minor javascript refactoring.
add some extra functions to LinearAnimation

this allows templates to do cool things
pass a frame-advance flag to template

This allows templates to implement their own internal animations.