Event Manager

EventManager class. Events are like hooks which can get executed at a certain time during the execution of a function. The idea is, to execute special code on e.g. server reset or deletion to intercept function calls at a specific point in time and not to break the flow of the application.

Events get a context, which needs to be documented, like the server object or an ID.

Event-Handlers get executed in a non-predictable order so their outcome cannot depend on any other hook.