Create BaseCodec to build custom codec
Changed FlexCodec to only support perfieldpostings format and lots of cleanup