Add ability to use arbitrary priors in sampling demo.