geonames Akara module fixes

Changed caches to use anydbm, to support more platforms.
Fixed algorithms to cache failed resolutions as well as
successful ones.