Hashing

I modified your approach using the `url` attribute instead of `id`. Labels, for example,
don't have an `id`.

I've included a simple test to check that hashing works for pull requests but I think we
should be more thorough about that, what do you think?