Ingest data from csv files

Implement `make_encoding`, `import_rows`, `generate_init`, and friends.