Support HTTP authentication

Resolves  #274