Add custom function to paginate a database query
Add custom function to paginate a database query

This is a simplified and (regarding the argument checks) slightly
modified version of Flask-SQLAlchemy's `BaseQuery.paginate` method.

homeworkprod/byceps,homeworkprod/byceps,m-ober/byceps,m-ober/byceps,m-ober/byceps,homeworkprod/byceps