oops, remove a debugging line.
fix #31. Support Basic Auth as an alternative to query params.
use error types instead of testing the error strings.