Introducing periodic scheduled actions to DelayManager

Also some minor fixes in DelayManager for delayed actions.