Dynamics of Thin Astrophysical Boundary Layers