Modify funcs with grains in pillar.
Merge pull request #11776 from Nibbler999/swap

Add swap option
Moved write cache before sending to master. This allows for the master to go down during a job but the minion will still have the job data
Merge pull request #11779 from cachedout/11453-1

Fix #11453
Merge pull request #11780 from replicant0wnz/cache-job-before-send

Moved write cache before sending to master.
Adjusted the symlink reparse point detection code to be more specific.

The first and third bits, the 'microsoft' bit and 'name surrogate' bit respectively, are now checked as well. The docs aren't definitive on this, but this meshes up with the definition in winnt.h so it should be right.
Turn class into a new style one instead.
We're now allowed for longer line widths
Lower the log levels
Merge pull request #11785 from s0undt3ch/hotfix/ssd-log-levels

Lower the log levels
Merge pull request #11770 from s0undt3ch/hotfix/jenkins

Lint fixes
removing the comment option from the list of valid list of add options, handling it inside the add function.  Changing the handling of multiple entries, using the same state option of entry but testing if its a list rather than a string.
Merge pull request #11786 from garethgreenaway/develop

Fixes to ipset state and module.
Updating iptables module to allow specifying dports and sports as a list in addition to a comma or colon separated string.
Made function for identifying if a file is a symlink a public module function.

This is necessary so the file module can be used on *nix and Windows in the same way.
Changed so reparse point data can be accessed for non-exclusively opened files.
Changed the error message slightly so it is obvious the value is hex.
Merge pull request #11787 from garethgreenaway/develop

Fix to iptables module
Updated win_file.get_user to match the *nix equivalent semantics and behaviour.
Updated win_file so it is at parity with the *nix version where possible.

There could be some breaking changes in here, including:
* the broken sed, sed_contains, patch, uncomment, comment functions were removed (sed and patch executables don't exist on Windows by default)
* follow_symlinks functionality was added where applicable and made to comply with *nix behaviour
* return values were changed to match *nix behaviour
* the stats function now includes user and group details
* get_group and get_gid now actually return the group, not the user as it previously did