Use a configuration file for the API URL and the timeout

The FreeGeoIP API is sometimes down when using HTTPS. Therefore, it would be a good idea to be able to set the API URL in a configuration file.