I should have fully functional caching code now, including the script to cache all tiles to files