Updates the Google API and fixes some compatibility issues with Cordova

The plugin would not longer build with the latest version of Cordova. This updates to the latest Google API.