CB-6776 Make project/.cordova/config.json integrate with platforms.js

Transplanted from cordova-cli version