Renamed EventEmitter to EventDispatcher
refactored `listen` as `addListener` and `trigger` as `dispatch`
Support for specifying supported formats at api method level using @format comment
Fix for php notice error