Fix various stuff

Note: the first commit disables broken nonce reuse for Digest Authentication.

A better solution would be to actually implement a working version of it, but since it's optional (it just reduces the number of round trips) I haven't done it yet.