Statistical mechanics of two-dimensional coulomb systems: I. Lattice sums and simulation methodology