Simple event dispatching system in C++ 11.