Adds salt state.highstate support for classes.