Cleanup.

Replaces app.config.initialDuration with
constants.INITIAL_ANIMATION_DURATION and makes
app.kapi.getAnimationLength the single source of truth for animation
length.