Externalize event registry.

Made it possible to register external custom events via external plugins..

This will help some plugins out there. Also making it so that they don't overwrite important events (Via adding a lock to a category)

Technically its still possible to do it via reflection but still.


I need to so I can add a new external soft depend on a plugin for new events.