tool to build SmartOS changelog

Ugly as sin, but it even works in a Mountain Gorilla checkout where origin is in the cache directory and don't have the other branches visible...
General style is copyright notices after the header in its own block. See for example `tools/build_etcrelease` and the illumos prototypes.