Added custom finished action to AnimationManager

When a custom value is used, a method finishedAction() can be defined,
that is called when the animation finishes.