Export statistics

I added some statistics information to the html export. There are averages and totals rows for each category, and tooltips that show percentages.

There is also a Summary tab that currently only holds placeholders. The team will need to discuss how those should be calculated before I can use them.