Arduino EventSystem

I was just about to implement something similar myself. Before I take the time to dive into your code, it would be very helpful if you could provide some documentation and usage examples.