Added an event class that holds all event data.
This will be used in the future trigger rewrite.
Improved strongly the history graph model.
Maybe it is functional, don't know.