Rename legacy_as_first_ingestion script
Add test for legacy data

- Update couch module to only set the "_rev" field for non-legacy
  cases
- Update the legacy_as_first_ingestion script to allow for passing
  of the couch instance