Add most functions from inter.c to interfaces.
Create geoip interface.