CB-6655 Export plugin ID to hooks when adding plugins from Git repos

Update plugins.js to set CORDOVA_PLUGIN_ID environment variable.