Internal HTTP API overhaul.