BranchApi: Implement get and delete

Update tests to use new APIs.

Change-Id: I1f27ea08d94ffd97650dccedf818003126bba3a9
6 files changed