Add a method to list tags in a repo

Analogous to the list_branches methods. Also cleans up some trailing whitespace.