add default_per_page configuration option, and add a #per_page_options_for_select helper to format the per page options for the template; fixes #818