Reduce time of public badges table.

Reduce the run time of the public badges table generation by two orders
of magnitude, down to under ten seconds when no public badges exist.
Removed fragment caching for public badges table.

See #430.