Add a configuration switch for enabled preview mimetypes

Backport of https://github.com/owncloud/core/pull/11211 to stable6

To test:

- [ ] TXT /  Image previews should work out-of-the-box
- [ ] Other previews work after enabling them in config.php