Updates webpack.config.js externals for UMD

Updates the webpack.config.js externals to support being used as AMD,
CommonJS, or globals.