convert TEvent/TStore handling in EventLoop from an Algorithm to a Module
The new module mechanism is much more suitable than a regular algorithm for managing the TEvent
/TStore
objects. So this is an upgrade I had in my eye ever since I made this upgrade to the core framework.
Since @gstark's comments on !20461 (merged) had gotten me to write another test closely related to this, I decided to add it here. The test works both for the old and the new version of the code.
cc @akraszna