Use types in elasticsearch for differend haystack indexes.

Fixes #503, thanks to @davedash for previous patch on which this one is
based.
One other note. I think the intent here is also to effectively grab [self.index_name]['mappings'], otherwise the comparison below of existing to current will always evaluate unequal because existing's top level element will be 'mappings' and not a keys for each doc_type.