Loop-space quantum formulation of free electromagnetism