Add phantomjs dev dependency.

[Works towards #46766613]
Add karma config file.

This will hopefully be more likely to work on the
jenkins server.

[Works towards #46766613]
Add junit test report to karma output.

[Finishes #46766613]
Add Webstorm files to gitignore.
Add coverage report to jenkins output.

[Works towards #46766613]