This allows us to apply a lot more server logic independently of which encoder is in use. Most of this class are things moved over from the Tight encoder.