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
Updated dependencies

Went over the output of `npm outdated`

 - Trying to update elementtree and semver broke the tests, kept as is.
 - Didn't touch npm and npmconf.
 - Some background about newer versions of npm and semver here:
   http://blog.npmjs.org/post/98131109725/npm-2-0-0
CB-7890 validate file copy operations in plugman

Signed-off-by: Shazron Abdullah <shazron@apache.org>
CB-7909 - Remove CDV prefixes from the templates, and filenames - for "plugman platform add"
CB-6992 Fix build issue on iOS when app name contains accented characters
CB-7846 Fix plugin deletion when dependency plugin does not exist
CB-7988: Update platform versions for iOS, wp8 & Windows to 3.7.0
CB-7988 Updated version and RELEASENOTES.md for release 4.0.1
CB-7988 Incremented package version to -dev
Added platform specific id for android according to
https://git-wip-us.apache.org/repos/asf?p=cordova-lib.git;a=commit;h=272fad91ed99574499f2de570d85d644e4fc8c99
CB-7988 Updated version and RELEASENOTES.md for release
CB-7988 Incremented package version to -dev