CBLT-319:  release and undo now like staging script

Change-Id: I87a24b7f9206cdf7a244e8cd90d3389b26090ff7
Reviewed-on: http://review.couchbase.org/38580
Reviewed-by: Philip Labee <philip@couchbase.com>
Tested-by: Philip Labee <philip@couchbase.com>