Ergodic Theory of Cellular Automata