Add an InvalidAuthRequest function

This allows users of the tls package to set
a function to call on invalid http authorization
attempts, such as a logging function.