Updating to complying with cordova v3 plugin architecture.