Bind to Codec.class.
Implement JSON serialization for Configuration.
Serialize/deserialize codec config.
Handle null codec configs.