Handle pagination properly in thundermaps module. Fixes #2.