Support auth from both mod_php and FastCGI

This commit tries auth against mod_php variables but if they aren't there tries against FastCGI variables provided apache configured with

SetEnvIfNoCase ^Authorization$ "(.+)" PHP_AUTH_DIGEST_RAW=$1

Works for me, but haven't tested against mod_php that I didn't break anything.