branches are now shown only for project. /project/1/branches/ lists all branches that have .project_ref = 1.
some tests.