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

Transplanted from cordova-cli version