config.js :: add auth() to use set-cookie if available in headers
auth.js :: use config.auth()
replicate.js :: use config.auth
lib/insert.js :: pass headers through for cookie handling
cmd/begin.js :: use headers to update auth cookie
cmd/end.js :: use headers to update auth cookie