Added GeoIP lib, misc improvements