CB-6954: Share events.js between cordova and plugman

github: close #31