Add timeout mechanism

the test driver now times out on individual batches of files when
processing speed drops below some limit (currently specified to
be 50 lines/second)