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

Tms cleanup
Merge remote-tracking branch 'origin/master' into viewerLoading