PDF plugin: handle 'ugly' URLs. Fixes #74.
Do not override permissions if already provided

This allows beforeAnnotationCreated hooks to provide their own
permissions objects.
Merge pull request #75 from hypothesis/allow-permissions

Do not override permissions if already provided
Made metadata extraction async

This is necessary, because sometimes we want to
get the data sooner than it's available,
because of the varying loading time if the
various components. (Including PDF.js.)

 - URL extraction: decode the URI properly
 - Made the `metadata()` method private
 - Added the `getMetaData()` method to wait for
   loading the document, and then extracting the metadata
Merge pull request #76 from hypothesis/pdf-update

Made metadata extraction async
Add support for PDF 1.0.712
Merge pull request #77 from hypothesis/pdfjs-update-1.0.712

Add support for PDF.js 1.0.712
Merge remote-tracking branch 'hypothesis/typed-packaging' into typed-packaging-MSA-2