Added searchByTags to view, storage and cache

Added searchByTags to view, storage and cache.

This required adding the user parameter in the tag manager as well.

Please review @LukasReschke @icewind1991 @nickvergessen 

Supersedes https://github.com/owncloud/core/pull/12617 due to Jenkinitis
Why not make `$userId` non optional?