[autotest] Migrate host history to site_utils, fix bugs

Move from contrib/ to site_utils/ host_history{_utils}.py
Fixed a bug where value of --index is not passed into
query to elasticsearch.

BUG=None
TEST=python host_history.py --index=cautotest -n 10000 \
                            -l 24 --board=daisy

Change-Id: If1f4133335dae6f4416eb3ab31df94c1f70a0bcc
Reviewed-on: https://chromium-review.googlesource.com/211336
Commit-Queue: Michael Liang <michaelliang@chromium.org>
Tested-by: Michael Liang <michaelliang@chromium.org>
Reviewed-by: Dan Shi <dshi@chromium.org>
2 files changed