[Browsing history] Remove 'beforeunload' to enable caching and prevent duplicate entries
Fix printing behaviour in Chrome

Two major issues:
1. Border/shadow around every page. Removed by adding "border:none".
2. Added "overflow:visible" (overrides "overflow:auto") in #viewContainer.
   This solves two problems:
   - It prevents scrollbars from appearing.
   - Every "page" is automatically resized to fit on a printed page,
     just like the Firefox.
To see what's wrong, here's a picture of how PDF.js rendered the pdf in
 Chrome (using "Print to PDF" feature of Chrome):
 https://robwu.nl/pdfjs/pdfjs-print-with-chromium-28.pdf

Successfully tested with Chrome 28 and Firefox 22.

Solves #3445
Disable Google Translate on viewer in Chrome.

test/pdfs/yo01.pdf triggered "This page is in Japanese. Would you like
to translate it?" info bar in Chrome.
Use dummy font for testing when pdf fonts are loaded.
Bug 881152 - hdpi/xhdpi resolution assets and layout for PDF Viewer app
 1. Add 1.5x assets
 2. specify the background size of page number section
[CRX] Improved navigation detection.

A user reported that the PDF Viewer is not rendered on Dropbox,
(Chrome on Mac OS X). This is apparently caused by the fact that the
PDF file is loaded in an iframe in such a way that the tabs.onUpdated
event is not triggered.

This patch switches to the webNavigation event API, which improves the
reliability of the navigation detection.

Unfortunately Opera 15 does not support the webNavigation API, so the
old (tabs.onUpdated) method is used (feature-detection is used, so
whenever Opera decides to implement this API, it will profit from it).
Add atob polyfill. Remove uneeded data uri polyfill.
Merge pull request #3479 from RudyLu/mutlires_1.5

Bug 881152 - hdpi/xhdpi resolution assets and layout for PDF Viewer app
Merge pull request #3473 from Rob--W/chrome-printing

Fix printing behaviour in Chrome
[CRX] Delay render of viewer if needed...

Sometimes, the viewer did not render for PDF files in an iframe,
because document.readyState not reaching "complete".

Deferring window.stop() until the root element is placed in the
document fixes the problem (typically a few ten milliseconds).
Merge pull request #3449 from Snuffleupagus/history-remove-beforeunload

[Browsing history] Remove 'beforeunload' to enable caching and prevent duplicate entries
Viewer: Remove inline events; set height on error

Move inline event handlers to viewer.js to comply with a
Content-Security-Policy where directive "unsafe-inline" is not set.

Change textarea.rows = <number of newlines> to
textarea.style.height = textarea.scrollHeight.
(The former is extremely unreliable; consider long lines...)
Removing code duplication
Merge pull request #3487 from timvandermeij/remove-code-duplication

Removing code duplication
Merge pull request #3486 from Rob--W/csp-unsafe-inline

Remove all inline JavaScript from viewer.html to comply with CSP unsafe-inline and correct error textarea's height
Merge pull request #3476 from Rob--W/no-google-translate

Disable Google Translate on viewer in Chrome.
Merge pull request #3484 from Rob--W/crx-improved-navigation-detection

[Chrome extension] Improved navigation detection by using webNavigation instead of tabs API.
Merge pull request #3477 from brendandahl/font-loading

Use dummy font for testing when pdf fonts are loaded.
Moves changeable details from etherpad and README to issues and wiki pages
Presentation mode shortcut implementation