Add GetEntryForHash() to consistant store
Merge pull request #214 from AlCutter/entry_for_hash

Add GetEntryForHash() to consistant store
Split the request-specific code from HttpConnection.

Also added a number of CHECKs and comments to clarify the logic.
Add support for cancellation of HTTP requests.