Refactored post-IRL-code-review.

Several things have changed; there is now only one file for all
javascript, external libs have been broken out into their own modules,
ajax now loads data so it's fresh, and there is more commenting in the correct
formats. New helper functions and general DRYing up. This code needs to
be reviewed for style, consistency with other extensions, library
security, and visual design integration (in progress). It has one glaring issue,
which is its resource loading - please advise on this; I get
inconsistent results with the module loading so everything doesn't
always render. Thanks.

Change-Id: Ie078317191313730cba1ab60c036b7ffb2d2cb1c