Tile cache expiry

This pull request limits the size of the tile caches. The number of tiles cached is limited, but, at a minimum, always contains all the tiles used to render the current frame.

Fixes #141.