first batch of code to turn basic auth async. Compile fails.

Signed-off-by: abbr <wenfred@gmail.com>