Update iPhone ApplicationPreferences to Cordova

I've update the old phonegap source to cordova