Rydberg state mediated quantum gates and entanglement of pairs of neutral atoms