Add an AuthRequest function

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