Major refactor of the reference shifting paradigm.

The afee and tee analyze methods were updated so that the grand
potential will be shifted to account for differences in both xi1
and xi2 from the reference values.