exportlegends can do site maps, IDd field

Expanded exportlegends.lua to handle site maps as well, and improved
precision of args.  Identified `vs.anon_21`; I'm not sure what the
process is so I've used it here and noted it's discovery.
Use name of now-identified field

Ready for DFHack 40.15-r1 and later
Add missing <algorithm> include for std::min & std::max
Add missing <functional> include for std::greater
Add <algorithm> includes and use min/max to get them into global scope
Updated full-heal to properly use args system.

Also updated NEWS.
Added add-thought to scripts.

I figure that it's useful enough and good enough by this point to be
included.
Update NEWS.
Updated add-thought to allow subthoughts.

Only works in non-gui mode for now, since there's no easy way to tell people what subthought is which with the GUI.
Switched subthought and severity in function arg
New script for viewing or setting cavern adapation of citizens.
Merge pull request #343 from PeridexisErrant/exportlegends-sites

exportlegends can do site maps, IDd field
Merge pull request #388 from Putnam3145/add-thought

Add "add-thought" script to main repo
Merge remote-tracking branch 'putnam/fullhealfix' into develop

Conflicts:
	NEWS
Update NEWS.
Merge remote-tracking branch 'dfhack/develop' into develop

Conflicts:
	NEWS
Merge pull request #386 from ace13/develop

Missing includes.
Merge branch 'adaptation-4015' of https://github.com/hobotron-df/dfhack into develop

Conflicts:
	NEWS
EventManager: make REPORT events only trigger for new reports, not ones that already exist in the save.
Make it compile for OSX.