move indexers to an "output" package
allow geonames namespace to be 0 with config option -g
fix imports, break out indexers
unify writeIndex function (small refactor)