Update plugin to be compliant with Cordova 2.7+
Merge pull request #296 from vergnes/cordova2.7

Update plugin to be compliant with Cordova 2.7+