Use the new CordovaPlugin interface

* Works on Phonegap 2.7+