Move templating for KML into its own file