Molecular Regulation and Evolution of Redox Homeostasis in Photosynthetic Machinery