Add event plugins to addons

I did this in the most API-constrained way possible. Will write docs.