Extend Cordova plugin with common interface and reusable code