TerrainLayer: added automatic cache invalidation based on TileSource last-modified-time; implemented for TMS only so far