Commuting Elements and Spaces of Homomorphisms