Spectral Map for Slow Collective Variables, Markovian Dynamics, and Transition State Ensembles