The patch create utils.py for methods which might be used
elsewhere in the project, with no matter on context.
Move get_base_url method from credentials.py to util.py so that
the method is reusable.
Change-Id: Ic8cb83bb8859b4fddcd57faa3e23992941d0010b