Support the /compare page

This adds support for the /compare page, as when you are comparing two refs or creating a pull request.

Fixes #22.