Derive state_file_path and baseline_repo_path from test_root
Extract repository cloning code
Support for testing git urls