Move the initialization of "metadata" out of `PDFViewerApplication.load`
Move the initialization of "metadata" out of `PDFViewerApplication.load`

Over time, with more and more API-functionality added, the `PDFViewerApplication.load` method has become quite large and complex. In an attempt to improve the current situation somewhat, this patch moves the fetching and initialization of "metadata" out into its own (private) helper method instead.

timvandermeij/pdf.js,nawawi/pdf.js,mozilla/pdf.js,caremerge/pdf.js,timvandermeij/pdf.js,nawawi/pdf.js,macroplant/pdf.js,showpad/mozilla-pdf.js,caremerge/pdf.js,Snuffleupagus/pdf.js,showpad/mozilla-pdf.js,Shoobx/pdf.js,timvandermeij/pdf.js,Shoobx/pdf.js,nawawi/pdf.js,Shoobx/pdf.js,Snuffleupagus/pdf.js,macroplant/pdf.js,mozilla/pdf.js,xavier114fch/pdf.js,macroplant/pdf.js,Snuffleupagus/pdf.js,xavier114fch/pdf.js,mozilla/pdf.js,showpad/mozilla-pdf.js