Pathways Towards Habitable Planets