Dedekind sums in geometry, topology, and arithmetic