Add methods to check, set and get the base url.