Authorization headers Basic Auth

Hi, I am done with changes. Sorry it took so long, I was bogged with some stuff in erlang that last while. I ran tests but haven't yet created any new tests for the authentication which should be done.

Regards,
David