Add lightweight event dispatching system.