Move most of Container functionality to trait.

Signed-off-by: crynobone <crynobone@gmail.com>