Add support for conditional requests.

Created from upstream PR 12
Change version to 2.2.0
Merge pull request #5 from Robert-Nelson/conditional-requests

Conditional requests