Fix centering of deviance calculation, fix CV weighting, add CV tests

Still need to do CV for logistic