Refactored to tiles and tilecache.
First working version.  With prefetching.  No cache management.