Incremental processing of input files.

This patch uses the last modification time of the output directory
and/or an empty file (.ts) created from the last invocation of the
generator to determine whether the input file is more recent. This,
in turn, decides whether the file is to be processed or skipped.