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.
Merge pull request #1334 from pmclanahan/open-compare-absolute

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