add pagination support

Surprisingly, that's all I had to do to make pagination to work in adminjs.