Http basic and digest authorization and documents cleaned up and merged with the latest master

The HTTP basic and digest authorization implementations and documents have been clean-up now and the latest changes from upstream/master have been merged in.

Fixes #610