Update index.php

Added CSS style at the beginning.
Added automatic folder/host detection via PHP variables.
Fixed ADD EXTERNAL KML feature.