An event emitter and base event class for the Beam framework