implements HTTP Basic Auth and fixes issue #4.