Fixed #299 Improve Retry behavior

1. Retry new replication session if previous session ends with error see ReplicationInternal.java
2. Apply same retry logic in a replication session. see RemoteRequestRetry.java
Ditto for lDelay.