added HTTP basic auth
moved require
added a basic test for http auth
Merge pull request #8 from Loupio/master

Basic http auth support