Expose an API for fetching all the branch names associated with a repository

Reviewers: cramer

Reviewed By: cramer

Maniphest Tasks: T10537

Differential Revision: https://tails.corp.dropbox.com/D61193