Added a event class so we can easily add a time() field to data classes

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>