add config variables for jQuery support
Pull in jQuery 2.0.2.  Add support for locally hosted jQuery files.
Note that the 'jquery_useminified' configuration option is not working
properly and we always pull in the debug version of jQuery right now.
Remove debug message line that was used during testing.
add overview_refresh option to control how fast the overview (home) page
refreshes
merge in some changes from the master branch
add refresh config values for the host/detail page, increase default
overview_refresh to 180 seconds
Moving the _refresh config variables down in the file.  Add note about
how refresh interval for the detail page can conflict with the cache
interval.
Use jQuery/AJAX to auto-refresh graph on detail.php page.
Change how refresh rates for graphs are calculated.

Instead of calculating the refresh rate of graphs as an absolute number
of seconds, it is better if longer duration graphs (1 day, 1 week)
refresh at a slower rate then short duration graphs (2 hours, 8 hours).
The simple way to do this is to use an "aggressiveness" value where
higher values result in more frequent refresh rates on the graphs.

Current calculation is:

(seconds per refresh) = (graph with in seconds) / (aggressiveness value)

For a default of 400 aggressiveness on the detail age, a full day graph
(86400s) will be refreshed every 216s (86400/400).  The maximum refresh
rate would be (86400/1000) = 86.4s.  A conservative value of 50 would
result in a graph that only updates every 1728s (28.8m).

For a graph of very short duration (3600s), a setting of 1000 can result
in the graph being updated every 3.6s.  The more default would be
(3600/400) = 9s, and a conservative setting of 50 would be (3600/50) =
72s.
Calculate refresh rate using detail_graphs_refresh_aggressiveness

Note: Also adds a sanity check that the graph width of a detail graph
cannot be less then 60 seconds.

Grabs the s= parameter off the URL to find out how wide the graph is (in
seconds), or uses the default from the configuration file.  Multiply
this value by 1000 and divide by the aggressiveness value to calculate
the time per refresh (milliseconds) for the javascript code.
Refactor calculation of refresh time and cache time

- Move duration_seconds (graph time period) calculation up to before the
calculation of the refresh time and cache values.

- If the aggressiveness value was set, verify that it falls within the
range of 0-1000.

- If the aggressiveness value > 0, then we need to calculate the refresh
time interval, and adjust the cache setting, then generate the
Javascript attached to the image.
Merge remote-tracking branch 'origin/jquery'

Conflicts:
	inc/html.inc.php