Add total animation duration limit.

Add total animation duration limit endpoint to control the time for whole iterative delay animation.

Close #1117.
Style nitpick - maxIterativeDelay can be inlined