Move reserved and managed entry code to modules.

Now mixed in to Container.