Allow disabling session and geolocation in API class