Minor tweak: Cache entries now have the last dot.

For better readability, the last dot of an IP addreses is kept
on the IP string (cache entry index).
Added support for JSON countries cache file.

Countries cache file is now stored and initialized by a JSON file.