Add extension to the core to allow library like loading of event handlers.