Massive cleanup of javascript, css, images, files and markup. Most notably, added documentation for javascript and heavily refactored many aspects of the JS.

Signed-off-by: Ashlin Allen <ashlin.allen@gmail.com>