Making Hot Module Replacement work:

Fixes https://github.com/webpack/webpack/issues/406