List branches for a project, with filtering