Tests: Add static index based backcompat tests

This change adds tests against static indexes for previous versions
of elasticsearch. It also adds a python script to
generate the indexes.
Tests: Forward port tweak to prepareBackwardsDataDir to 1.x to allow passing
settings when loading an old index.