Deregister event handlers.

Add a method to deregister a particular event handler or all handlers for an event.