Rewrote TileMeshGrid with lots of todo comments.

Slowly fleshing out the behaviour that will eventually become the chunk
manager.