CORE-5602 Allow only 1 metadata template per data item.

Added set-template-instances and remove-data-item-template-instances functions to donkey.persistence.metadata.
Updated donkey.services.filesystem.metadata-template-avus/set-metadata-template-avus to use the new set-template-instances function.