Miscellaneous improvements for the document properties dialog

This PR finetunes the document properties implemention from #4149. The following changes have been made:

- Implements closing the document properties dialog with the Esc key. It also fixes a bug in the password 
  prompt where it would only be closed if focus was in the text field (which is important to have consistent behaviour).
- Adds an ellipsis to the document properties menu item in the l10n files.
- Adds the improved `setFileSize` function as provided by @Rob--W including the required localization.
- Adds wrapping for property fields to fix an issue where a very long file name would exceed the dialog
  width (you can use http://www.kennemerlyceum.nl/attachments/article/4/Toelatingsbeleid%202014-2015%20%28laatst%20gewijzigd%20op%206%20november%202013%29.pdf to verify this fix).
- Fixes a small issue when the property text was too long, causing the view to be misaligned (as reported
  by @Rob--W).
- Fixes number formatting as discussed with @yurydelendik.
- Fixes an issue where the add-on version would show the entire URL instead of only the file name in the
  document properties dialog (you can use http://www.kennemerlyceum.nl/attachments/article/4/Toelatingsbeleid%202014-2015%20%28laatst%20gewijzigd%20op%206%20november%202013%29.pdf to verify the fix).