Metadata

One minor bug fix, config file readability, plus implementation of metadata IP and port in configuration.
Do we require IP addresses here? As a follow-on, do we require IP addresses in all these fields, or are domain names appropriate? We should try to normalise these (not necessarily part of this patch).