Add total animation duration limit.

Add total animation duration limit endpoint to control the time for whole iterative delay animation.

Close #1117.
See my comment above: It might be better to name this `maxTotalDuration` or something along those lines.