Insert pagination utilities from beego/wetalk. Refs #835.

Counterpart is beego/wetalk#38.
change the param `controller PaginationController` to `ctx *context.Context`