Changing base and resource uris. Base needs to be absolute for swagger ui and swagger code gen.
Introduced Swagger cache to simplify configuration.