Add webpack config and `main.js`

Running `node_modules/.bin/webpack` will compile `main.js` to
the `dist` directory, including a hash in the filename for caching.