Machinery for versioned releases

WIP of necessary script to prepare releases.
I reckon this test should be conducted just before publishing. I can forsee circumstances where we may want to re-run the release script for a release that is already up there.