Re-organize and enable webpack

Also, run browser tests in Chrome using karma.

Fixes #61