Replicator now runs in background, using iOS background-task API

Instead of stopping when the app goes into the background, each active
CBL_Replicator now registers a background task with the OS and keeps
running until it goes idle or the task runs out of time.