[CB-4715] Parse URL parameters 'subdir' and 'ref' when fetching plugins

Both the npm hash links and query style url's would be supported.

To test:
cordova plugin add https://github.com/jbondc/cordova-labs.git?subdir=cordova-deps-test