Simplify event system. Add args to events, remove global events, and sub events.

Check for changes to empty in placeholder plugin.