doAjax is no longer referenced outside API

The details of the server API are now mostly relegated to api.js. Single
device mode successfully "registers" against FakeAPI. Multidevice mode
has a recursive loop somewhere that makes the callstack asplode.