encoder.cc: Throw an exception on roundtrip failure
Add skeleton for serializing DCT partitions
Move decoder state updates to their own source file
Move all dequantization to be transitory for decoding