The cyclic theory of Hopf algebroids