Add `hgo branches` command and branch heads parsing