Handle shared files properly

* add hook handler for unshare event - deletes track on unshare
* use of methods instead of key access for metadata
add hook for sharing item
Merge pull request #182 from owncloud/access_shared_files

query filecache for media files, overwrite path with path from filecache