Migrate Javascript over to RequireJS Modules

We can now split our code into as many modules as we want, making managing the code as it grows easier. Everything gets compiled into one big javascript file when maven is run. This way we decrease the number of HTTP requests needed, which speeds up the loading of the pages.