created confiuration for phonegap 3. JS interface updated to match phonegap 3 plugin requirements.