Singular Chains on Lie groups, the Cartan relations, and Chern-Weil theory