Make Branch.NameKey enforce full ref names

Also remove some now redundant ref fixes before constructing
Branch.NameKeys.  This reduces the proliferation of "correcting" code.

Change-Id: I5d9864d7c6ea7252f05a4ccabcf124cb014c4fae
6 files changed