Merge pull request #2636 from alex/uri-hash

Implement __hash__ on UniformResourceIdentifier