get-headings.rb produces smarter output

Modified get-headings.rb to sort headings into unique per file
versus multiple instances of heading per file,
plus parse out 'special' headings eg GEO IDs.