First attempt to have a proper sandbox cleanup on widgets stop
Improve mediator extension

- Keep track of events attached to sandboxes to be able to clean them.
- Add tests.