refactored loadFromFile() into TilesCore
refactored estimateTileSize() into TilesCore
refactored saveToFile() to TilesCore
refactored prepareForOffline() to TilesCore
refactored _getTilesUrl() to TilesCore
added code comments