Replaced document-viewer with simple HTML pages

Added a new widget (documentpreview) that replaces the old
document-viewer for PDF-based files.