Metadata

One minor bug fix, config file readability, plus implementation of metadata IP and port in configuration.
I'd be inclined to get the config parser to do it, given that it's a configuration error if the hostname can't be resolved. Makes it consistent. =)