Fix Issue #4461: Pages without \Resources in their dictionary fail to load

When no "\Resource" entry could be found return an empty dictionary
Refactor and fix style of core.js
Add load test for Issue #4461
Merge pull request #4464 from bthorben/issue#4461

Fixes pages without Resources in their dictionary
refactor src/core/pdf_manager.js: rename pdfModel to pdfDocument

Rename pdfModel to pdfDocument to let the name closer resemble what the
variable actually holds
Add Test for PDFDocumentProxy_getPageIndex
Merge pull request #4481 from bthorben/refactor/pdf_manager.js

refactor src/core/pdf_manager.js: rename pdfModel to pdfDocument
Merge branch 'upstream/master'
Merge branch 'master'

Conflicts:
	src/core/worker.js
generate new PDF.js builds