The ergodic theory of Markov processes