Replace window.onmessage with window.addEventListener

When having multiple bundles that use hot module replacement loaded in the page, `window.onmessage` got overwritten by the last loaded bundle, making it the only one receiving the message. Changed it with `window.addEventListener` so it gets handled by all the bundles. See discussion here: https://github.com/webpack/extract-text-webpack-plugin/issues/30