Fixes to changehost functionality

All changes documented in polyfractal/elasticsearch-segmentspy#2