Fixes #5255 - Version destroy plan phase clears packages

Removing before_destroy hook and creating a dynflow action to handle updating
ElasticSearch for repositories. Also removed package orphan code from
clear_packages_index.
Merge pull request #3994 from daviddavis/temp/20140421111807

Fixes #5255 - Fixing clearing content for repo destroy