Added support for http digest authentication

fixes #102
Enabled Basic and Digest Auth to coexist
Simplified and fixed digest authentication implementation
adding requirement for net-http-digest_auth