Handle metadata correctly
At the moment the handling of metadata in the xml files (which is effectively meta-metadata) is done poorly. This should include things like the release version used to produce the xml, and the git hash at which the xml is produced.