plugins: implement standard variables for HTTP authentication.

Instead of having each plugin handling authentication in a different
way (some with variables, others with URIs), make available standard
variables, and provide an authentication callback to libwww-perl
directly in our module.