Import tar archives

Also refactors the importer code to make better use of ArchiveImportTask.