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.

@rginda 
What's the contract with git_branch_name here?  If the branch name is over 99 characters do we smash the stack?