Add generic function to run something on current or listed branches.

bmpt finish and bmpt test had shared behavior: If no PT ID
was offered, try to extract it from the current branch name.
Otherwise iterate through the ones provided.

This has been consolidated into a function in the branches module
called "runOnCurrentOrSpecifiedBranches".
Allow ongoing to take multiple commits like finish and test