Implement Branch.upstream getter and setter.

Thanks to @cholin for the help!
Implement Branch.upstream_name getter.