added first, last, pagination template, and totalpages to api, changed sortable to template,