Introduce new internal `GeoIPWrapper.country_lookup` API.

Also move the invalid database handling out of the `geoip_lookup` method
and into the `__init__` call.