Micro framework for dispatching events