Update webpack config to compile Kotlin flickerlib to JS

The kotlin webpack plugin requires the latest webpack version so webpack was updated and refactored to modern standards

Test: Run 'yarn run dev' and 'yarn run build' and make sure everything still build and that a JavaScript compiled version of flickerlib is found in 'kotlin_build'
Change-Id: I02cc1e5bb16afeb5c407a18926ee485d715e41df
9 files changed