The Atacama Cosmology Telescope: Cosmological parameters from three seasons of data