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

When I tried to use this in Cordova 3 it barfed. Here are the changes necessary to get it going again.