CB-5504: Moving code to the App plugin inside Cordova, the place where the grey area beween plugin and platform exists