Add possibility of unregistering in events mechanism.
Merge remote-tracking branch 'drebs/feature/2696-implement-unregister-in-events-2' into develop