Plugin which is compatible with latest Phonegap

First off, thanks for this useful plugin. However, I had to spend a fair amount of time before I could use it with latest Phonegap or with Phonegap Build. 

After these changes plugin can be installed automatically as described in the README file.

If you accept this request, please add the plugin to Phonegap Build plugin directory. 
https://build.phonegap.com/plugins