Allow multiple metadata attributes

This change will allow the api adapters to translate multiple metadata
attributes as will as individual ones. We realise converting all values
to an array is not the best solution although we are happy with this
change until we are sure of how we expect this to work.