refactor parser#build_collections (treat all collections the same), add id_ify() and add_refs() to handle joins, edit translations