Refactoring tagstats code.
Make compilation not conditional on TAGSTATS_GEODISTRIBUTION_FOR_WAYS
Updated test_tagstats.sh script.