Changes to be compliant with Cordova 2.7

Hey,

Just few changes to the java plugin to make it running on the latest version of cordova. hope it helps!

Giorgio