magit-insert-local-branches: don't break when HEAD is detached
magit-ref-fullname: new function
magit-branch-delete: restore ability to delete remote branches
magit-branch-delete: offer to detach HEAD before deleting current branch