A simple event loop and event base class, along with an event supporting c++11 closures.