[Couchbase] Final cleanup for iOS7. Plus additional cleanup in sync progress logic.