QED 3 theory of pairing pseudogap in cuprates: From d-wave superconductor to antiferromagnet via an algebraic Fermi liquid