Introduce ContextObserver mechanism
Implement ccs algorithm and related mechanisms.