Refactor further

Moved the getting of urls into the config.go file, so main contains no reference to
where the urls actually came from.