Get url, tenant, username, password from config
Don't pass tenant to functions any more
stub doesn't use normal API client