Fix replication auth

Set credentials to the HttpClient if available. This code is somehow missing probably due to the merge process.
Merge pull request #138 from couchbaselabs/fix-replication-auth

Fix replication auth