implement diff pull_request api.

[fixes issue #30]