Save and load mechprefs.