Tropical Teichmüller space and the moduli space of curves