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...
The use of the bash built-in "caller" will tell us which line called fail, but I'll verbosify the calls to fail.