add back Nick's lost set_ab_test function

Really need an admin UI for this...
Merge commit '57c63bfb92dcdb5635236cae6649260abe790de5'