Elliptic and parabolic equations with fractional diffusion and dynamic boundary conditions