allow per_page to be set, not over max_per_page, fixes #26