allow changing of the base API url (for internal testing)