Clean up redundant check for revision range mismatch
Add a function to convert a BranchRule into a Git ref name
Make Repository traffic (publicly) in BranchRules rather than branch name QStrings

This is preparation for determining which branches are shared by sub-
and super-modules.  Other branches in submodules will be prefixed for
tracking in super-modules.
Minor refactoring