The Broadband Spectrum and Infrared Variability of the Magnetar AXP 1E 1048.1–5937