Improve the config interfaces so that config does setupUrls automatically, and tidy some of the config get/sets in server.js