Added binaries for r.js build system

Added rhino jar for running the r.js builder,
Google closure compiler jar for minifying and tree shaking,
r.js for the actual build
Added cajon.js

Cajon.js is the library allowing the usage of commonJS like modules in the browser.
Added build file

Added a simple build file for r.js configurations.
Changed the Makefile and the entry point

Changed the Makefile and the applications entry point to match
the new r.js build and the request.js module system.
Changed all of the modules to use common.js

Changed all of the modules and classes in the application to match
the new CommonJS way of writing modules.
Merge pull request #107 from dzautner/commonjs

Changed the applications module system to CommonJS
fix api basepath in settings
Merge pull request #108 from dzautner/fix-api-path-in-settings

fix api basepath in settings