Register the specified object to receive events. Any public void methods
in the object that a) are marked with a @Subscribe annotation, and b)
take a single event from the org.micromanager.events package as their
only argument will be invoked with the appropriate event object when
those events occur.
Un-register the provided object from the EventBus, so that it will no
longer receive event notifications. You should make certain to do this
when objects are disposed of (e.g. if they are attached to a window that
is being closed). Failure to do so can result in errors when the event
is published to an invalid object.