Plugin class is deprecated from phonegap 2.7

Changed Plugin class to CordovaPlugin