Split context manager out to its own file

Working on contextual workflow management, split context manager out to
its own file.