Bayesian Optimal Active Search and Surveying