Adds AdvancedAttributesAwareCodec that can handle attributes that are valid for all codecs and fixes parsing them. Adds handling of ptime for one of the codecs.