allow full access to the metadata API through setMetadata() rather than requiring use of create_metadata()
Merge pull request #5750 from cash/clean_up_set_metadata

allow full access to the metadata API through setMetadata()