Seems a little speculative but pretty interesting thoughts. In regards to terraforming Mars this might be of interest:
"During the daytime, plant-like microorganisms on a Martian-like surface could photosynthesize hydrogen peroxide. At night, when the atmosphere is relatively humid, they could use their stored hydrogen peroxide to scavenge water from the atmosphere, similar to how microbial communities in the Atacama use the moisture that salt brine extracts from the air to stay alive."
Astronomers have observed up to three newborn planets evolving from a disk of gas and dust particles circling a distant Sun-like star. While 1,900 planets have been discovered outside our solar system, these are the first to be seen that are still forming.