Connections with Torsion and Connes' Spectral Action Principle