Machinery for versioned releases

WIP of necessary script to prepare releases.