Add a configuration switch for enabled preview mimetypes

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