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
Now you have another SQL error? You have no syntax highlight?
```php
"AND `tag`.`type` = 'files' " .
```