Changed how the base url is set.

Now the base path is set only if it's not already been set in the Urls class.

This means that we can change the base url statically before the application starts, which we will do during CI testing.