Bump version to 3.1.0.pre to prevent confusion with master being 3.0.0 but 3.0.x releases are out.