Add preview plugins

This PR adds the plugin architecture used in Emails (only the library, nothing to manage the plugins) and three plugins to preview images, markdown, PDF and OpenDocument files.