Rename npm package to mw-ocg-bundler.

This name more accurately (if concisely) reflects the gerrit repo name.

Change-Id: Id864a525f82930bb6c2bb75fc8d0e851c64aef6b
Bump version in package.json.

Change-Id: I6529849ac4a30e1d3bde4a109ce8e598a9b6d7e0
Use mw-ocg-bundler as binary name, and consistently in documentation.

Change-Id: I4b5215f506f7ac2e0bae29cd5ba2342facbdbed7
Add non-enwiki test case.

Change-Id: Ib5abe69801bf04087766b3d1ebdcead47f54a791
Fetch PDFs when used as images, and thumbnails for embedded video.

Change-Id: Ie44bac0f6579796d4fb943ee4d8419aaea25e7f0
Merge "Fetch PDFs when used as images, and thumbnails for embedded video."
Release 0.2.0.

Main change is consistent binary name (mw-ocg-bundler).

Change-Id: Iea21ab5c000595eab949ef6b277f856fec172bb2
Catch silent errors.

When an exception is thrown inside a promise, it *should* be caught by the
promise.done() method.  But occasionally it is not, and the program
ends silently with a 0 exit code.  That's not good -- explicitly catch
thrown exceptions at the end and ensure a non-zero exit status.

Also use the promise monitor built in to the 'when' package to catch
any other lingering unresolved promises.

Change-Id: Iefd05cf82aee12913a1776e36361e48710d2c755
Slightly improve status reporting.

When the metabook spec already has a commonswiki, we want to 'skip over'
a status report.  Passing no arguments made us repeat the last status report
instead, which made it look like we were downloading site information twice
for the last wiki.  Use a space instead.

Change-Id: I9f44371d090713fde3c529be027cac71432d4e6a
Fix image download status reporting.

We were generating twice as many reports as expected, so the image
download took the percentage from 40% to 80% before jumping back down to
60% when the next stage started.  Whoops.

Change-Id: I6955f1fdc3f0e7c24619a51399454281f05fe326
Allow overriding maximum image resolution on the command line.

This allows us to easily create smaller bundles for testing.

Change-Id: Ia9f657ad885bc54118d2bd9f5aa78be60520489e
Add a multiwiki test case; keep image sizes small during tests.

Change-Id: I9c75250c48ee587339b1082f3578821cfe73468f