Refactor tile functions

* Add support for minZoom in XYZ tile grids and tile sources
* Factor out common tile coordinate transforms
Clip tiles to extent in tile coordinate space
Promote createTileCoordTransform into base class
Merge pull request #671 from twpayne/refactor-tile-functions

Refactor tile functions