StateManager and states now pass their `container` to child states.

This lets StateManagers participate in the container ecosystem more fully.