Add error checking to major pieces of apt.py module
Remove trailing whitespace
Check for errors in dpkg.py

Also fix it so that this module will work AT ALL.  cmd.run returns a
dict, which does not support splitlines(), so I think this was
completely broken, and people just don't use it so we didn't know.
Fix pep8 line length
Add more error-checking to apt.py

Conflicts:
	salt/modules/apt.py
Fix syntax error (whoops)
Moved groups assignment out of useradd to avoid errors when the group is the same as the default user group
check whether a usergroup is set explicitly as part of the groups parameter and set it as default group on systems with usergroups enabled
added try..except around file open call as this will fail on some systems.
In such cases it is assumed usergroups are not enabled.
fix #4065
Catch the exception for when salt is unable to connect to syslog.
Bring to the developer's attention that a version bump might be missing.
Use outputters in runners/manage.py.
Fix scheduling for low intervals for minion.

Also improve the logging so it is possible to debug why scheduled jobs
are not running.
Fix `None` is not iterable exhibited while running `integration.states.user.UserTest`.
Output value was being persisted through the exception

Fix #4098
User cmd.run_all (I misread cmd.run)

Also, because of my misreading of cmd.run, my previous comment about
dpkg.py not working was incorrect.

Conflicts:
	salt/modules/apt.py
import grp in try

Windows has no 'grp' module

Conflicts:
	salt/states/cmd.py
fix import os

somehow I changed import os to import ps

Fixed it
do not set paths here