Mars as a Nearby Exoplanetary Laboratory: Solar Wind Interaction, Atmospheric Loss, and Prebiotic Chemistry