The singularities and birational geometry of the universal compactified Jacobian