Ported from Python implementation https://gist.github.com/maptiler/fddb5ce33ba995d5523de9afdf8ef118
Convert a raster into TMS tiles, create KML SuperOverlay EPSG:4326, generate a simple HTML viewers based on Google Maps and OpenLayers.