Transfer operator approaches to automorphic functions, resonances, and Selberg zeta functions