new event handling, option for apps to send their own events to DrPublish and other apps