Add monitor and downtime APIs with integration tests.

**Don't merge until new monitor UI is released**
Possibly unnecessary, but we could also check that the options are still the same (test that updating the query doesn't wipe other parameters)