Support for TileStache's 'safe' layout

This adds support for TileStache's 'safe' directory layout:
http://tilestache.org/doc/#caches

This also corrects grid filenames when writing.
Tests for 'safe' layout
Merge pull request #3 from mojodna/master

Support for TileStache's 'safe' layout