applied configureawait to eleminate the deadlock problem.
Merge branch 'configureawait' of https://github.com/tugberkugurlu/ravendb
RavenDB-1562. Replication fails at target due to "Put attempted on document using a non current etag"
Merge branch 'RavenDB-1562' of https://github.com/ppekrol/ravendb
Adding passing test