Updated to Cordova 1.9.

- Added example and updated the README.
- Moved the badge clearing to the plugin module.