Refactor rc-open/close to return a StagingRepository. Include open/close steps in the actual release to avoid additional steps and to retain the repository identifier. Simplify command line conditionals, avoid log parsing and return log contents directly. Reformat Jenkins files.