Fundamentals of Nonparametric Bayesian Inference