Allow registering and handling of user defined event types