more concise error reporting for ddrindex CLI
add inheritance to elasticsearch index()

If I've done this correctly, entities and files that are children
of collections or entities that are incomplete or nonpublic
should not be posted to ElasticSearch.
WARNING: Contains hard-coded values and other garbage code.