Fundamental groups in arithmetic and algebraic geometry