Theory of the low latitude boundary layer and its coupling to the ionosphere: A tutorial review