Branch-management changes

Split the branch management scripts to smaller scripts. Scripts no
longer create branches, it should be done in a separate step.