Sample surveys

In test directory for the time being, until we have a way to bootstrap this kind of thing.