Self-Adjoint Extensions of the Laplacian and Krein-Type Resolvent Formulas in Nonsmooth Domains