Implement a basic LoginAuth support.

LoginAuth expects arguments compatible with a new request that
returns cookies we can merge into subsequent requests.  Currently
timeout and custom 401 handling is not implemented.