issue #2087: Adding CustomEvent and CustomEventListener and bug fix for CCInputDelegate in Extension.