Modal events

Adds a simple Pub/Sub events module & use that to allow other modules to perform actions when modal content is loaded.