Use new pagination methods. Refs astaxie/beego#837.