Introduces a dedicated `run-repository.sh` for the repository custom
bits.
This allows us to keep `run-elasticsearch.sh` and `run-tests` in sync
through file copying or patches easier.
Co-authored-by: Tomas Della Vedova <delvedor@users.noreply.github.com>