implement hourly averages for metrics, as decided in ticket #10.  closes #10.

also implements sorting by last
and show one digit in tooltips, by default