Change pagination to use Kaminari.

- Calculate from limit, offset, and total_count.