Added some helper methods to initialise some of the config if it doesn't exist, as well as to normalise the urls.