Add getCurrentBranch command

Adds a command to query the current branch. This is called async by scm. It is a read-only call thus doesn't lock the repo operations.