Important counters bug fix and daily update

fix critical problem with failure calculation
implement double attempts to send etag request and replication request,
add call to failure counting and stats registering functions
added creation of replications options