Pagination module that actually limits records sent to the client, and provides prefabbed template helpers for manual and infinite scroll loading.