- Replacing previous JavaScript client solution with a better implementation using RequireJS.

Note: this is a partial commit. There are lots of missing features that will be re-implemented over time.