Send/require a cookie header on digest-auth

Also fix an import.
Merge pull request #110 from sigmavirus24/add_cookie_header_to_digest_auth

Send/require a cookie header on digest-auth