Squashed

* query filecache for media files, overwrite path with path from filecache
* query filecache for images when cover path need to be resolved
* delete tracks when unsharing files
* use getPath() to resolve fileid
* use getPath to resolve cover path by id
Fixes

* add emit of delete hook
* fix unit test
* use of methods instead of key access