Add a configuration switch for enabled preview mimetypes

Do not merge - requires discussion.

@MTRichards @karlitschek @craigpg See mail. THX.