Better error catching in EMDR queues; fix to MarketHistoryAggregates test and calculations; rework tradescan command