refactor pagination model. remove duplicated code and scopes
Merge pull request #589 from opf/feature/rails3_refactor_pagination_model

Refactor pagination model