Add support for esriConfig.defaults.io.corsDetection.
Merge pull request #14 from yeroc/master

Add support for esriConfig.defaults.io.corsDetection.
Add setMinScale/setMaxScale options.
Merge remote-tracking branch 'upstream/master'
Remove duplicated code in constructors.
Automatically assign an id to the containing Element if one hasn't been
set.
Merge branch 'master' into amd