added basic http auth

http://username:password.{{your-hostname}}.com/api/1
Merge pull request #2 from nstanke/master

Add basic http auth