Dimers on the kagome lattice I: Finite lattices