Moving appropriate parts of Kaminari code into pages controller - first step in preserving current tab upon pagination