add SPD readout, and calibration/tuning based on parameters

greatly improves compatibility, should have solid performance with
most 2-rank dimms. Tested with Crucial, Kingston, and a few other
generics. Some oddball DIMMs are still incompatible, such as one
from Corsair and a very strange one from Samsung.