refs: replace flags with reference enum type
refs: move ref format string lookup to separate method
refs: make reference formats configurable

This introduces a new `reference-format` setting and changes the default
reference format to make remotes a little easier on the eyes:

	set reference-format = [branch] <tag> {remote} ~replace~

Fixes #201