Use github api to get latest sha for branch in open-compare.py.

Use short SHAs in the url, and make it absolute over time by including the
latest SHA for the branch in the compare url.