Backporting Pagination module from engineAPI-Modules repo