CRM-13918 report_template.getrows api - add limit & offset per Deepak's comments

Also add test-generated examples & a few code tidy ups