Partially implemented async order data acquisition

Asynchronous order data acquisition not fully functioning yet.

Slightly optimized code (fixed harmless errors and moved repetitious
HTTP requests into global functions).