Fix reopening pull requests.
Fix pull request menu behaviour and reopen failure toast.
Use normal commit compare API for pull request commit list.

The pull request commit API sometimes incorrect commit comment counts.
The commit compare API doesn't have this problem, so using it works
around this problem. The Github app does the same thing; and as a bonus
we need less code in total.
Cleanup.
Keep all trending pages loaded.
Fix variable name.