[ip] Be more flexible with the GeoIP database location

Location is now configurable.
Lookup order is:
1. Configured location (if not None)
2. Bot's homedir
3. /usr/share/GeoIP
4. Download from the internet into bot's homedir

Downloading requires gzip support.

This fixes issue #291