Added helper for deleting ElasticSearch docs.

refs #5223

Added a helper function for deleting ElasticSearch documents where a document
field matches a value.
Added logic to rebuild to delete related AIP data.

refs #5223

Added a command-line flag to the script that rebuilds the ElasticSearch
AIP-related data. The flag will delete any existing AIP-related ElasticSearch
data for the AIP that's being rebuilt. This can be used to repair ElasticSearch
data in event of an ElasticSearch server failure during the creation of an AIP.