Added cookieAuth option to the replicate.to and replicate.from functions.