basic auth

Signed-off-by: Alexander Skjolden <alex@plastboks.net>
pep8

Signed-off-by: Alexander Skjolden <alex@plastboks.net>