MODE-2292 Indexes and definitions are now properly persisted and work across repository restarts.
Merge pull request #1234 from rhauch/mode-2292

MODE-2292 Indexes and definitions are now properly persisted and work across restarts
MODE-2285 Corrected how the index providers are written out prior to shutting down