Machinery for versioned releases

WIP of necessary script to prepare releases.
I'd use `sed "s/^\(var version = \).*$/\1\"$VERSION\"/"`... But I wonder why did you use this instead of `-ldflags "-X main.version  $VERSION"`?