Balanced harness

We want to exercise Balanced from two different test scripts. This PR moves the code common to both into `gittip.testing.balanced`. Builds on #2058.