Replaced document-viewer with simple HTML pages

The UI counter-part of https://github.com/oaeproject/Hilary/pull/654.

Added a new widget (documentpreview) that replaces the old document-viewer for PDF-based files.