Internal hierarchy

Move some modules to an Internal.* module hierarchy. This mirrors the network-transport-tcp structure better.