Initial Digest Authentication work

Added check of WWW-Authenticate header for required security method
Added code to generate a Digest response for the Authentication header
Added utility code around the above.