Backoff + cap number of retry attempts

https://github.com/couchbase/couchbase-lite-java-core/issues/299
Reset numFailedRevisionRetries when goOffline or goOnline called

https://github.com/couchbase/couchbase-lite-java-core/issues/299