Added support for "handleEvent"

The addEventListener method can now accept an object that implements the EventListener interface (has a "handleEvent" method)