Added code that adds the 401 status and www-authenticate to the HTTP header if an authRealm is set using requiresAuthentication()
Added code that gets username and password from the HTTP header if an 'authorization' header exists.
Revert "Added code that adds the 401 status and www-authenticate to the HTTP header if an authRealm is set using requiresAuthentication()"

This reverts commit f1086eed5f570bb792e82ac27a39e844d812ad12.
Added code that set the auth realm which causes a 401 status and WWW-Authenticate header to be added to the component.