Update sysctl.py

Bugs fixed for the test conditions:
1. Corrected if-else logic, for already correct sysctl option setup before.
2. Added test logic: If state file is trying to setup invalid sysctl option, that is not supported by the minion's kernel.
Update sysctl.py
looks like this should be false since no changes are pending
Add stdin support for cmd module

This commit adds the ability to specify stdin for the command that you
are running. This allows for more secure running of commands which
require sensitive info be piped into them.
Normalize the 'pwd' field in shadow.info output

This makes this field match the corresponding field in user.info.
Normalize the 'pwd' field in shadow.info output

This makes this field match the corresponding field in user.info. This
also updates the docstring for set_password to be more descriptive.
add freebsd shadow module
add netbsd shadow module
Make shadow support work in FreeBSD, NetBSD

This commit uses the new shadow modules for FreeBSD and NetBSD, as well
as updates the logic to only support shadow support where it is
supported.
Update docstring to reflect updated shadow support
Slight tweak to _shadow_supported()

When this function was added, Solaris support was improperly defined.
This commit fixes that.
Double to single quotes.
fix mine while caching is disabled
Fixed a typo in the default logfile name for the minion.
Only run refresh_db once per salt run

As presently contstructed, pkg.refresh_db is run for every call of every
pkg.installed and pkg.latest state, and the refresh param for these
states is ignored.

This commit fixes it so that the rtag isn't created for every call, and
that a pkg.refresh_db is only done when refresh == True and the rtag
exists. After the install is run, the rtag is removed, keeping
pkg.refresh_db from being run in subsequent pkg states within the same
state.sls or state.highstate.
Make pkg state refresh if rtag exists

After further discussion with Tom, the intent is that there is a single
pkg.refresh_db each salt run. This commit reverts that particular change
from the previous commit.
states.sysctl: add spaces after commas to fix pylint C0324
modules.freebsd_shadow: rm unused import of the os module

************* Module salt.modules.freebsd_shadow
W0611:  6,0: Unused import os
modules.netbsd_shadow: rm unused import of the os module

************* Module salt.modules.netbsd_shadow
W0611:  7,0: Unused import os
Fix salt.modules.win_pkg.latest_version

The return dict needed to be initialized with empty strings, as done in
the other providers. Fixes #5746.