add a class func to set baseURL

Pull Request for this issue: https://github.com/hallas/agent/issues/9