more robust job of restarting migration where it left off.

also add argument support of variable couch pagesize