Test Query ordering

Tweak memory throttling
Start working on on-demand worker thread start/stop
Cleanup RepCache SQL submission
Cleanup temp import table create/drop code