CB-6024: Accept cli vars as part of opts param

This is part of the nopt refacoring in cordova-cli. The old spaghetti logic
for extracting options and variables from the arguments is kept, but should
probably be removed soon.