Ensure the elasticsearch indexes are initialized before the first request
- Use a flask hook to be sure the index is initialized before
performing any action
- Fix the server tests to avoid a side effect with the global
application configuration not reset between 2 tests
Related to T3076