Summary: Add REST APIs to view the internally scheduled jobs + some fixes based on the discussion on demo.
Test Plan:
1. UTs passed for controller.
2. For the removal of failure based on waitForServer, the test was done after changing the timeouts for master heartbeat delays and follower lags.
```
2024-07-30T22:23:03.521Z [error] 2d2a4440-edbd-401d-983f-b732973c2761 AutoMasterFailover.java:291 [auto-master-failover-executor-1] com.yugabyte.yw.commissioner.AutoMasterFailover Failing master 10.9.81.185 in universe 8a510164a4e645319c299c10398b1ae5 as
hearbeat delay exceeds threshold 47202a5e-fc61-4222-adec-999204861d29ms
2024-07-30T22:23:03.524Z [info] 2d2a4440-edbd-401d-983f-b732973c2761 AutoMasterFailover.java:186 [auto-master-failover-executor-1] com.yugabyte.yw.commissioner.AutoMasterFailover Failed masters for universe 47202a5e-fc61-4222-adec-999204861d29:
[yb-admin-nsingh-test-universe1-n1]
```
Reviewers: amalyshev, cwang, sanketh, #yba-api-review, sneelakantan
Reviewed By: amalyshev, #yba-api-review, sneelakantan
Subscribers: sneelakantan, yugaware
Differential Revision: https://phorge.dev.yugabyte.com/D36938