Add grinder_headless_test_task and refactor to reuse a test_main_preparer.