Amazon Specific changes:
Added support for SdkVersion
Expose PluginInfo from cordova-lib

Usage example to get a list of installed plugins:
var plugins = cordova_lib.PluginInfo.loadPluginsDir('plugins');
var pluginIds = underscore.pluck(plugins, 'id');
Updated fireos parser.
Merge branch 'uplevel'
Some more amazon-fireos related changes.
CB-7884 moved platform metadata to platformsConfig.json
CB-7884 Fixed up incorrect JSON
Fix `cordova platform add` not using searchpath from config.json

This was causing a problem when a platform was added and one of the already
installed plugins had a dependency specific to this new platform (this is
rather rare).

One example is org.chromium.socket depends on org.chromium.iossocketscommon
only for iOS but not for Android.

To reproduce using mobile-chrome-apps:

    cca create TstApp --link-to=spec --android
    cd TstApp
    cca prepare
    cca platform add ios
Merge pull request #1 from apache/master

Merge with upstream