Major updates to the web statistics interface.
-Add a URL hash to support browser back and forward and to allow permalinks
-Clean up and optimize code.