allow setting custom netrc in query and document defines

We need to perform some actions as the replication user for plain couch.