Fix for timestamped indexes #272

Update to fix bug when using timestamped indexes (index_timestamp)

Index name was being set before the timestamp pattern had been resolved, and so was creating a literal index name.
e.g. index-YYYY-MM-dd instead of index-2014-06-28

Changed the order to set timeWindowed before before index name