De-lint test suite.

Change-Id: Ib0b4471052688ff220a7f331abcb27e20a410bb7
Tweak metabook.json to better match spec.

Put the 'type' field at the top of each object; add 'type' field to
FileRepo objects.

Change-Id: I7462c80d7456051578b1b4e69ed1a7aeda55abd8
Add CLI option to force a toc.

Change-Id: I59a0baee226a0df90989112b69744c843cf7e5ff
Factor out promise utility module 'P', shared with mw-latexer.

Change-Id: Ida24d906a37afa557b9b093f91e4ef038b37d6f1
Ensure spidered filenames are unique.

This avoids filename conflicts in multiwiki collections.

Change-Id: Ideb3260486623bcae2f9aaffd957d40cf4e49a98
Report status of bundler

Change-Id: I3995d86bb71d99463fe59cbeb576ae54f730552a
Use -D consistently across mw-bundler and mw-latexer to turn on stack traces.

Change-Id: I53e7d693dbf780dfee70970bc1daf508fa21decd
Truncate image filenames if necessary to fit OS limits.

Change-Id: I8026c822f0b00d0ca8edc2c5ee23efd91b8567ae
Decode URI encoding in image resource titles.

Change-Id: I596177dbd0436a64e08f7869fb2886b4bbac1058
Write siteinfo.db to record siteinfo in a multiple wiki collection.

Change-Id: I30feaf399c29e204a7790544ac8bfe2736c9de78
Merge "Use -D consistently across mw-bundler and mw-latexer to turn on stack traces."
Merge "Truncate image filenames if necessary to fit OS limits."
Merge "Decode URI encoding in image resource titles."
Merge "Write siteinfo.db to record siteinfo in a multiple wiki collection."
Prefix the revision ID by the wiki index to create a unique key.

This makes keys unique for multiple wiki collections.  We also hack
the title used to fetch image information from commons to strip the
localized 'File:' namespace, since commons doesn't know about all the
different localizations.

Change-Id: I6e173f8eaf48dc1ee9dfabc1132d84163a3876da
Refactor revision fetch code to occur in (limited) parallel.

Change-Id: Ideaeea33506a7e4d0e42662d814910a719ba06a6
Add 'forEachPar' and 'forEachSeq' helpers to promise helper module.

These factor out common patterns.

Change-Id: I2d757de38120f41b8ba7178e80888b42cf7e7c7f
Add featured article list and a script to build collections from it.

Change-Id: Ib1f56a103c233cbde54ea63d3885a1fbb567a7ea
Improve script to build featured article collections.

Change-Id: I2969662ecd0fa7de5a08c910efac8935803cdc02
Further improvements and bugfixes to featured article bundling.

Trim pathnames (where necessary) intelligently; don't chop off extension.

Allow specification of metabook collection title on command line; use this
in the samples/featured.js collection generator.

Remove _ from article titles when generating metabook.json.

Change-Id: I88c7d39923976e0053b822784c40033ec8fd8f84