remove obsolete TagResolver interface
support implementing Encoder/Decoder interfaces directly
Add initial support for RawCodec, refactor EncodingState impl