Clean up some minor tweaks in the codebase.
The plan is to close issues:
Also the way the list of metadata is stored inside the server changes from a std::vector<std::pairs<...> to a std::map, because this fits more closely to how S3 and Phobos handle this.