Pull debug footer out into its own template.

This allows plugins to override it.