Fixed geodetic tile calculation and cleaned up code.

The geodetic profile was creating tile caches with a resolution factor of 0.703125, instead of the standard for TMS geodetic tiles which is 1.40625.  This error broke tile numbering for subsequent zoom levels.

Additionally, refactored code within the geodetic object for better maintainability.