Fix self joins for container, using the ancestry gem. Add export-to-csv function for the search results, using roo.