Extracted common GDAL functionality to GdalDataset. Cleanup
Used consolidated code for GDAL layer and GDAL tile store