[MULTIPLE PRs] salt.states.saltmod

IF you approve all changes in this PR, merge this one instead of #10508, #10509, #10510, #10511

Fixes #10508
Fixes #10509
Fixes #10510,
Fixes #10511