Version bump to 3.1.0. Update CHANGELOG.