Add NetworkStatsMode to the debug overlay.  Cache its output so that it does not flicker.
Merge PR #1273 by @Josharias - network debug stats