Extract deferred events before sending them to a statemachine
Changed visibility of internal classes or constructors
Replaced Scheduler with IScheduler at some places where I forgot it first…
Fixed wrong import due to regression
Updated comments