Ongoing KML work

1. Clean up spec variable names
2. Fix invalid XML in specs.
3. Start of refactoring KML loading to avoid needless iteration.