Add a framework for A/B testing.

Arguments to the abtest.py script are in a comment in the
*_main.c* files.