Cordova2.7

Ported the iOS BarcodeScanner to cordova 2.7. Changed to the current cordova api.