From the Evolution of an Organelle to Photosynthetic Function