PDF plugin: migrate to native Promise

With this, we stop using the promise implementation
bundled with PDF.js.

Solves #69.