Authentication update

Hi Rafa,

This pull request includes all the latest changes which I made to support BASIC authentication. This includes the addition of a filter, and seems to work fine now. Could you please do a quick review ? I would really appreciate it  :-)