Use thread local variables to make it work with config.threadsafe!
Fixed results_in_batches to use an enumerator
Added extra fields to sales order and sales order item
Bugfix for get_list ( breaks when passed a single element internal id array )