Fixed some issues with imagery layers.
Fixed the zoom to extent for imagery.
Fixed a few more bugs.
More fixes.
Added basic support for certain TMS endpoints.