refs: rename refs module to refdb
refs: rename branch view to refs view

Change the name of the branch view (as discussed in #257) in preparation
for enhancing the branch view to also show tags (issue #134).
refs: use refs_ prefix for internal methods and variables