Introducing periodic scheduled actions to DelayManager

Also some minor fixes in DelayManager for delayed actions.
Why is this required?