We now allow definition of event types to be published via the application context. Original pull request: #5.