Quadratic forms, algebraic groups, and Galois cohomology