metadata#each_document pass block correctly

fixes #2
scrape_session: create directory before