Move encoder statistics into EncodeManager from SMsgWriter

It knows more details so it can track things better.
4 files changed