Add event dispatching with handler registration & unregistration.  main currently demonstrates this with a blinking LED.