Git version info

Use git (rather than bzr) commands to determine the branch name and revision number.