Turn any object into an event dispatcher.