Retry failed replications instead of crashing.
Retry failed replications instead of crashing.

capi_ddoc_replication_srv used to crash completely in case some of the
nodes in the cluster is not available. Now we will ignore down nodes
and schedule a retry.

Change-Id: Ia3dbe73355d19c457a5d3e4d8d5bef4696b902b6
Reviewed-on: http://review.couchbase.org/11446
Tested-by: Aliaksey Kandratsenka <340b8e09ca65cd3fc686427fcfed17e87eaf61e2@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <340b8e09ca65cd3fc686427fcfed17e87eaf61e2@gmail.com>

mschoch/ns_server,daverigby/ns_server,membase/ns_server,membase/ns_server,t3rm1n4l/ns_server,mschoch/ns_server,t3rm1n4l/ns_server,t3rm1n4l/ns_server,nimishzynga/ns_server,daverigby/ns_server,ceejatec/ns_server,membase/ns_server,t3rm1n4l/ns_server,mschoch/ns_server,mschoch/ns_server,vzasade/ns_server,pavel-blagodov/ns_server,mschoch/ns_server,daverigby/ns_server,nimishzynga/ns_server,membase/ns_server,ceejatec/ns_server,vzasade/ns_server,membase/ns_server,pavel-blagodov/ns_server,daverigby/ns_server,pavel-blagodov/ns_server,nimishzynga/ns_server,ceejatec/ns_server,vzasade/ns_server,membase/ns_server,ceejatec/ns_server,nimishzynga/ns_server,ceejatec/ns_server,vzasade/ns_server,nimishzynga/ns_server,mschoch/ns_server,pavel-blagodov/ns_server,ceejatec/ns_server,nimishzynga/ns_server,daverigby/ns_server,t3rm1n4l/ns_server