Optional externals in amd use globals instead of an explicit dependency

There isn't any mechanism in the amdjs spec to provide optional
dependancies (although a requirejs loader plugin could do that, it's not
standard). The best approach found was knockout's optional dependancy on
jquery, for which it doesn't use require, it only uses globals.

This solution will need to be improved for use of requirejs/amd in
commonjs environments, and could be toggled with a flag.
add 'umd2' libraryTarget for optional amd dependancies as globals
Update ExternalModule.js for umd2
Merge remote-tracking branch 'origin/master' into optional-require-as-global

Conflicts:
	lib/UmdMainTemplatePlugin.js
fixed HMR bug
1.3.6
fixed copy bug
1.3.7
Merge remote-tracking branch 'origin/master' into optional-require-as-global

Conflicts:
	test/cases/parsing/extract-amd/index.js
fix .npmignore

fixes #431
Merged PR #362
code style fixes
additional test case for umd2
update versions
error when HMR is not enabled but entry added
expose sourceMaps flag to loaders
1.4.0-beta1
added `cachedAssets` stats option

fixes webpack/webpack-dev-middleware#17
Update CaseSensitiveModulesWarning.js

I believe this should be "an equal" instead of "a equal"
added 'hidden-sourcemap' devtool

fixes #437
Merge pull request #436 from tcoopman/patch-1

Update CaseSensitiveModulesWarning.js