Move addon state objects into cm.state

Rather than polluting the top-level of the editor object