addObserver

Adds an observer for a spatial container's state.