Upates plugin.xml and Java code for Cordova 3 compatibility.