In stats.php: improved table headings, added total
and average per day.
Added totals to stats page.