Attach, remove and trigger events on any object that inherits this small utility.