Introducing periodic scheduled actions to DelayManager

Also some minor fixes in DelayManager for delayed actions.
My guess: Option to attach a delay trigger to a block. Which would have to persist its entity to keep track of time?