Bump version to 3.1 for release.