backported socket-based _changes feed tracker evsukov89/couchbase-lite-ios#7