Update SpanProcessingThread so it tries to buffer spans before sending them in batch to collector.

This should reduce communication overhead.  However if the batch size
is not reached within 2 polls (max 10 seconds) the available spans will
be sent over anyway.