Add a configuration switch for enabled preview mimetypes

Do not merge - requires discussion.