Do not mutate swh.core.api.serializers.ENCODERS or DECODERS
The previous implementation would always append extra_encoders to the main
ENCODERS list. Refactor encoder and decoder extensions both with a common getter
which doesn't mutate the global variable.