Add http basic_auth and debugging and docs