Logstash index module to lookup indexes for ES

Previous code was untested and had an issue around timezones.  Now
tested, and includes tests for that edge case.