Sync HTTP rewrite

Sending commands over websocket was nonsense. HTTP is the perfect fit.