When deleting a link, check to see if any of its tags are now unused, and if so delete them.
Optionally email exceptions to an admin address.