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
Looks like I missed adding $userId here.
Having some trouble with `searchCommon` now as it only accepts a single argument... Will try passing a callback instead.