Log uncaught JavaScript errors to the server

Addresses #623
Merge branch 'hotfix-623-catch_js_errors' into develop

Conflicts:
	README.rst