Support IPv6 in address check lookups.

This supports IPv6 in address DNS lookups and socket bind checks. Addresses are
looked up with the system getaddrinfo(), and the v6/v4 preference of this lookup
is respected. IPv6 address literals in the config file are expected to be
bracketed in [], and the result of lookups will be bracketed as well, to support
the ZeroMQ URI format.
Unset the IPV4ONLY socket option if available.

Since IPv6 sockets support both v4 and v6 addresses, the socket option is unset
unconditionally if the parameter is available in the zmq module. The actual
decision as to which address version to use is done by the address lookup code,
which obeys the system v4/v6 preference.
Be more resilient towards missing addresses and hostname lookup failures.
Add a unit test for passing IPv6-formatted addresses to verify_socket.
IPv6 address literals should be specified without brackets in config files.
renamed postgres.db to postgres.maintenance_db and all postgres module function arguments from db to maintenance_db
made default maintenance_db "postgres" and also made default postgres/psql runas local-server only
removed runas for local network access
use postgresql CSV export to read data from the db. also adds psql_query command.
Fix IndexError

Running str.split() on a whitespace-only string results in an empty
list. Enclose variable assignment in a try/except block and skip to
parsing next line of output if an IndexError is detected.

This fixes #4315.
Merge pull request #4322 from terminalmage/issue4315

Fix IndexError
Add the ability to define single function calls in the overstate
Add ability to pass in ""raw option to cmd_iter
Clean up stray print statements
repair data passed into the state check function
Fix #4302, This changes the syndic to listen on the event bus

and filters out the jids, and sends them up to the syndic-master.
This catches all jobs as they come in the right way, async, out
of bounds.

The problem of minion identification still persists for the cli client
on the master-master, this will require an update to the master but
it should function out of bounds of the minion update
Darwin launchd scripts
Fix TypeError in pkg.group_install

Package groups are case-insensitive, so convert the group names to
lowercase in group_info to ensure that matches are found.

However, if the group does not exist, this same traceback will happen.
Resolve this by using dict.get.

This fixes #4260.
making deploy_war function work on windows
Merge pull request #4331 from ranl/develop

making deploy_war function work on windows
Add a needed extra space so it works on cli