local: Delete uris in library refresh (fixes #500)

Makes sure we remove uri's that can no longer be found in the tag cache.
Merge pull request #549 from adamcik/fix/bug-500-library-refresh-does-not-remove-uris

local: Delete uris in library refresh (fixes #500)