Fix regression in resources; #167

The order of imports was important in resources/__init__.py. I addressed
this by moving the pagination methods to a separate module.