Feature/add basic authorization

fixes #9 
fixes #10