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

- [x] REQUIRES: getTagsForObjects https://github.com/owncloud/core/pull/12409
- [x] TODO: add unit test for sharedstorage
`$userId` is expected to be a `\OCP\IUser`. - Also I don't get why we pass here an ID and below the user object? Maybe it makes more sense to always pass the IUser?