The Dirichlet Space and Related Function Spaces