Move stat table generation to stats.php.

This page is mostly static and it shouldn't require a call to process just to make a table.