Refactor event handling to support both namespaces and objects

The only difference between the two is function signatures and how to access the event. The bulk of the event_handler! macro remains in event_handler_body!, with specific implementations for objects and namespaces.

Created by  finchie  on December 15, 2025
YKBMKWDPOQKACONKDMURG76BE7N7DA4HLM57V7ARYZPQOHDFCE5QC
Change contents