Fix fetching GitHub branch names containing slashes.

Git branches can contain slashes, but our GitHub support was stripping
them off. We now support showing the entire branch name, slashes
included, by stripping off the leading 'refs/heads/' instead of
splitting on '/' and getting the last component.

Reviewed at https://reviews.reviewboard.org/r/5983/