Ongoing KML work

1. Add tests for document name detection.
2. Better error detection for unparseable KML.
3. Better namespace handling.
4. Improved node value parsing.