Performance improvements and admin dash plugin.

Made sorting of variables faster by not considering the variable
class (would go to the DB each time) and also made searching for
duplicate/cyclical relationships faster by not asking for each
relationship each time, and instead loading up all relationships
at the start (takes an initial hit, but then gets cached for
subsequent requests.

Also added another admin dashboard, to inspect session variables and
stuff like that.
comment field was only char(255)