Internalize classes

A bunch of classes were public that didn't need to be; most of them were
able to be marked internal.