Use cost raster to init costdistance raster
tweak some map variables
Update the interface to be consistent with tile-stitcher
merge from master