Add PDFJS.abortGetDocument function to enable cancelling of calls to PDFJS.getDocument
In test/unit/api_spec.js rename the function `waitsForPromise` to `waitsForPromiseResolved`and add a `waitsForPromiseRejected` function
Add unit test for PDFJS.abortGetDocument