Use `jpegtran` to purge EXIF data from jpegs.

XeLaTeX will still give images the wrong size when there is certain EXIF
information attached to the JPEG.  Use the `jpegtran` utility to clean
EXIF information from the JPEG before we give it to XeLaTeX.

Since the WMF test infrastructure does not have `jpegtran` installed,
skip this step when running there.

Change-Id: I1c00dc80ff052d71371300c10b16d86e98fb02ab
Use proper page of any PDF figure.

We use the `pdfseparate` utility, found in the `poppler-utils` package,
in order to separate out the pages of the PDF so that we can pass the
right one to XeLaTeX.

Change-Id: I5fdc83c5f5be0d85313ae9fce85c111590a46a5e
Allow rendering from unzipped bundle

Allow the renderer to consume an unzipped bundle file.  This saves CPU
cycles when the bundle was created on the same machine.  Due to the
use of hardlinks, the bundle directory in this case must be on the
same file system as the temp dir -- use the system environment
variable TMPDIR to specify an appropriate directory if necessary.

Change-Id: Iad77b766a12654876a7c140220df9a37dc25f6c6
Add -T option to CLI to specify a temporary directory.

This does the same thing as setting $TMPDIR in the environment.

Change-Id: I43cf578da61978a3fb0baab6e93139210c5348e0
Merge "Use `jpegtran` to purge EXIF data from jpegs."
Merge "Use proper page of any PDF figure."
Always use bidi, even if the wiki is "in theory" only LTR.

RTL content can be included even in LTR wikis.

Change-Id: I03bc2c9cbb38fb5f89a4678676609526d3c1a27e
Render attribution page

Change-Id: I4e6c3b6d92088fe1a600ddb35eed66abfa630327