WIP: Work on search and metadata api.
Don't show metadata section if there is no metadata.
Fixing the error condition message output so swagger-ui shows error reasons.
Setting up metadata put to allow setting metadata through a json object.

This is better supported by swagger than arbitrary url-encoded params.
Adding support for PUT and POST calls using arbitrary content types.
Adding a test for the new metadata endpoint.