Added code from PullRequest #291
Fixed issue with GetRootChangesetForBranch returning a changeset on the branch to create instead of its root changeset on the parent. The issue made it impossible to create the branch.
Fixed issue with fetching labels for branches with dot in their names.