Log lines now sent to api in batches of 10000, rather than 1 at a time. Lines are also commited to the db in a batch of 10000
merging in batch_logs branch