Allows packages to define events and provides a global event dispatcher.