content views - update to handle deletion of repo from a definition

This commit contains changes needed to refresh and promotion
to handle the case where a repo is removed from a view.

It also contains changes to 'clear' the content in the
target repos, if they already exist. This way we will
regenerate the content on refresh/promotion.