allow writeuptopageid to write multiple output files
[WIP] best choices for bzip and gz initial settings need to be made.
If passed new arguments for the output directory and a series
of output file specs, containing the filename and page
range for each file, the input stream on stdin will be read
and split up into these output files as specified.
Output files with names ending in gz or bz2 will be compressed
appropriately.
Updated the copyright notice too while in here.
This is prep work for being smarter about writing temp stub
files for generating page content output files that cover
specific page ranges. We currently read the entire input
file for each output file generated.
While we're here, rename the None state to NoWrite, which is clearer.
Also add tilde files to gitignore.
Bug: T196063
Change-Id: I30ff4a58098ad708126e4b03262c56c156d7d93b