Bump version to 3.1.0 ready for release