Diversification of the type IV filament superfamily into machines for adhesion, protein secretion, DNA uptake, and motility