add `couchbeam:get_missing_revs/2` functions and tests

while I'm here test the replication.