Add monitor and downtime APIs with integration tests.

**Don't merge until new monitor UI is released**
Will do.