Add support for branches API.