Add api for getting branches for filter.

This api will allow plugins to override default behaviour which is to show
all branches only when syncronized mode is not on.

Change-Id: I430a88432d588a303794b40f8651dfee9babc38f