Fix warnings/errors in TileMapServiceImageryProvider.
Better cleanup of previous submit.
Merge pull request #423 from AnalyticalGraphicsInc/tmsCleanup

Tms cleanup