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...
cargo-cult copied from tools/build_iso... I'll go back and verify which binaries I need.