bug 1858 - always retry REST calls rather than exiting
bug 1858 - always retry REST calls rather than exiting

Added a loop to retry REST servers rather than exiting, which is the
behavior that users want for standalone moxi.

Change-Id: If39a03b909c5a69cc3383b553b25c3f244979ac4
Reviewed-on: http://review.northscale.com/1389
Tested-by: Aliaksey Kandratsenka <340b8e09ca65cd3fc686427fcfed17e87eaf61e2@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <340b8e09ca65cd3fc686427fcfed17e87eaf61e2@gmail.com>

membase/libconflate,couchbase/libconflate,membase/libconflate,couchbase/libconflate