MS-91: Add JavaScript optimization

Introduces use of [webpack](https://github.com/webpack/webpack) to optimize the JavaScript. The result is one single JavaScript file.