branch: reuse for_each_ref for listing branches

TODO: get_get_head_description(), coloring
branch: add --sort and --count