Add option to clear junk models in tag table.

If enabled, after editing/deleting owner model, tag records with a
frequency equal to zero will be removed.