Allow code upgrades for _changes reader

Also nice to get `couch_replicator.erl` back under 1000 LoC

BugzID: 24294