refactor and cleanup + addition of the User-Agent for geopaparazzi's tile request to align with http://wiki.openstreetmap.org/wiki/Tile_usage_policy