use owner's thumbnail cache if file is shared

fixes #10322

- Use the cached thumbnail of a file's owner instead of creating a new cached thumbnail for each user a file is shared with.
- some cleanups in \OC\Preview

please review @PVince81 @icewind1991 

ToDo for myself: 
- [ ] test with encryption
use self::? same below?