Get CLI apps working (ish)

The mmdblookup app still needs to made generic so it doesn't depend on
GeoIP2-specific keys.