[HTTP] Support sha1 and sha256 checksum verification

Fixes https://github.com/CocoaPods/CocoaPods/issues/2105
Merge pull request #21 from CocoaPods/checksum

[HTTP] Support sha1 and sha256 checksum verification