add kml file generator

Signed-off-by: Keisuke Nakao <chome@argv.org>
move genTile function to genTiles as an inner function
fix bug not to add rain tile
fix some bugs

Signed-off-by: Keisuke Nakao <chome@argv.org>
rename kml.xml to kml.tmpl