Container memory management

The plumbing.  Polish later.