Make serialisation of eventObject overridable

By adding appropriate closures in Config.groovy, consumer can change the data that is sent with each EventObject. This can be done per-namespace and/or with a default closure for all event types.