The Theory of Boundary Critical Phenomena