Boundary theory for recurrent Markov chains