geoip code cleanups, added #geoip command