Deduplicate options processing for forked/non-forked tests.

This in particular fixes testOnly/testQuick when forking.
Apply setup and cleanup hooks to forked tests.

The actual class loader for test classes cannot be provided because it
is in another jvm.
fix tests/fork.  It relied on being able to run a test multiple times in the same forked group.