Optimize client-side javascript delivery

As we're using requirejs client requires a large number of HTTP requests to get the javascript.

We should compress and uglify these files to reduce the number of HTTP requests and reduce the amount of code delivered to the browser.