Add support for state.top function to salt.state state