Replace WebSocket API with HTTP API for issuing commands

The WebSocket API was a bad match for issuing endpoint commands. It was painful to use and painful to test.