MDL-46678 gradereport_history: Move hardcoded sql from index.php to an api
MDL-46678 gradereport_history: Write unit tests for get_graders api