Add views and basic functionality for a/b tests

Change-Id: I7a9148cf6b084decf531f2f40731ae3f127ea0c1