Add CreateReference API (to create a new branch).