Metadata

One minor bug fix, config file readability, plus implementation of metadata IP and port in configuration.
We've agreed to defer this.