MDL-46569 gradereport_history: Use table_sql for the report

This patch includes:-
- Convertion of the code to use new renderable/renderer apis
- Rewrote the code to remove all custom sorting, etc and use table sql instead
- Usernames are now clickable
- Grade items are now clickable
- Grade history is now displayed even if the grade item is deleted
- We are now using table sql for downloads so export in multiple formats is supported
- Feedback is now properly formatted
- Source fields are not capitilised anymore
- Paging is not shown on top of filters anymore
MDL-46649 gradereport_history: Add apis to get users and user counts
MDL-46649 gradereport_history: Refactor ajax.php to use the new user apis
MDL-46649 gradereport_history: delete the old class grade_report_history