add listStatuses and listHeads. re-implement listBranches using listHeads