Added searchByTags to view, storage and cache

Needed to be able to get a flat result list of all favorites.

@icewind1991 @schiesbn @nickvergessen please review

- [ ] REQUIRES: getTagsForObjects https://github.com/owncloud/core/pull/12409
- [ ] TODO: add unit test for sharedstorage
we'll soon find out :wink: 

I tried putting everything between backticks but it didn't work, it said "Colum `file.fileid` doesn't exist". So not sure.