Add a configuration switch for enabled preview mimetypes

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