Core contextual command framework.