Type IV pili: dynamics, biophysics and functional consequences