The Evolution of Gas Kinematics in Star-Forming Field and Cluster Galaxies Since z~1