Implemented support for multiple "elastic" indexes.

All 239 tests pass.