Automatic Sequences: Theory, Applications, Generalizations