Add support for replaying origin visits + more tests
(Adds tests for writing+replaying releases, revisions, directories, origin_visits)